mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 03:07:04 +02:00
Fix Debug output
DebugHelper is useless, bacuase the return statement is always executed before the actual code.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Threading;
|
||||
using Wox.Infrastructure;
|
||||
@@ -15,7 +16,7 @@ namespace Wox.Plugin.Program
|
||||
if (watchedPath.Contains(path)) return;
|
||||
if (!Directory.Exists(path))
|
||||
{
|
||||
DebugHelper.WriteLine(string.Format("FileChangeWatcher: {0} doesn't exist", path));
|
||||
Debug.WriteLine(string.Format("FileChangeWatcher: {0} doesn't exist", path));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
@@ -74,7 +75,7 @@ namespace Wox.Plugin.Program
|
||||
{
|
||||
programs = ProgramCacheStorage.Instance.Programs;
|
||||
}
|
||||
DebugHelper.WriteLine(string.Format("Preload {0} programs from cache", programs.Count));
|
||||
Debug.WriteLine(string.Format("Preload {0} programs from cache", programs.Count));
|
||||
using (new Timeit("Program Index"))
|
||||
{
|
||||
IndexPrograms();
|
||||
|
||||
Reference in New Issue
Block a user