Skip to content

Commit bad7db6

Browse files
committed
Improve code quality
1 parent 2856da8 commit bad7db6

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Plugins/Flow.Launcher.Plugin.Explorer/Main.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public string GetTranslatedPluginDescription()
9797
return Context.API.GetTranslation("plugin_explorer_plugin_description");
9898
}
9999

100-
private void FillQuickAccessLinkNames()
100+
private static void FillQuickAccessLinkNames()
101101
{
102102
// Legacy version does not have names for quick access links, so we fill them with the path name.
103103
foreach (var link in Settings.QuickAccessLinks)

Plugins/Flow.Launcher.Plugin.Explorer/Views/QuickAccessLinkSettings.xaml.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using System;
22
using System.Collections.ObjectModel;
33
using System.ComponentModel;
4+
using System.IO;
45
using System.Linq;
56
using System.Windows;
67
using System.Windows.Forms;
@@ -190,13 +191,13 @@ private void SelectPath_OnClick(object commandParameter, RoutedEventArgs e)
190191
private static ResultType GetResultType(string path)
191192
{
192193
// Check if the path is a file or folder
193-
if (System.IO.File.Exists(path))
194+
if (File.Exists(path))
194195
{
195196
return ResultType.File;
196197
}
197-
else if (System.IO.Directory.Exists(path))
198+
else if (Directory.Exists(path))
198199
{
199-
if (string.Equals(System.IO.Path.GetPathRoot(path), path, StringComparison.OrdinalIgnoreCase))
200+
if (string.Equals(Path.GetPathRoot(path), path, StringComparison.OrdinalIgnoreCase))
200201
{
201202
return ResultType.Volume;
202203
}

0 commit comments

Comments
 (0)