Skip to content
This repository was archived by the owner on Jul 18, 2023. It is now read-only.

Commit d480732

Browse files
committed
fix format and remove duplicate check
1 parent e87f313 commit d480732

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

Main.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -262,8 +262,7 @@ public string GetTranslatedPluginDescription()
262262
public List<Result> LoadContextMenus(Result selectedResult)
263263
{
264264
if (selectedResult.ContextData is not SearchResult record)
265-
if (selectedResult.ContextData is not SearchResult record)
266-
return new List<Result>();
265+
return new List<Result>();
267266

268267
var icoPath = record.Type == ResultType.File ? "Images\\file.png" : "Images\\folder.png";
269268

@@ -287,8 +286,10 @@ public List<Result> LoadContextMenus(Result selectedResult)
287286
var notepadPath = string.IsNullOrEmpty(_settings.EditorPath) ? "notepad.exe" : _settings.EditorPath;
288287
contextMenus.Add(new Result
289288
{
290-
Title = string.Format(_context.API.GetTranslation("flowlauncher_plugin_everything_open_with_editor"),
291-
Path.GetFileNameWithoutExtension(notepadPath)),
289+
Title = string.Format(
290+
_context.API.GetTranslation("flowlauncher_plugin_everything_open_with_editor"),
291+
Path.GetFileNameWithoutExtension(notepadPath)
292+
),
292293
Action = state =>
293294
{
294295
using var notepad = new Process();

0 commit comments

Comments
 (0)