Skip to content

Commit b93faff

Browse files
committed
Code cleanup
1 parent 9167cba commit b93faff

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

Flow.Launcher/ViewModel/ResultViewModel.cs

+2-5
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,8 @@ public ResultViewModel(Result result, Settings settings)
2121
{
2222
Settings = settings;
2323

24-
if (result == null)
25-
{
26-
return;
27-
}
24+
if (result == null) return;
25+
2826
Result = result;
2927

3028
if (Result.Glyph is { FontFamily: not null } glyph)
@@ -61,7 +59,6 @@ public ResultViewModel(Result result, Settings settings)
6159
Glyph = glyph;
6260
}
6361
}
64-
6562
}
6663

6764
public Settings Settings { get; }

Flow.Launcher/ViewModel/ResultsViewModel.cs

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public ResultsViewModel()
2828
Results = new ResultCollection();
2929
BindingOperations.EnableCollectionSynchronization(Results, _collectionLock);
3030
}
31+
3132
public ResultsViewModel(Settings settings) : this()
3233
{
3334
_settings = settings;

0 commit comments

Comments
 (0)