Skip to content

Commit fdbd307

Browse files
Lamparter0x5bfa
andauthored
Apply suggestions from code review
Co-authored-by: 0x5BFA <[email protected]> Signed-off-by: Lamparter <[email protected]>
1 parent 28375a3 commit fdbd307

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/Files.App/ViewModels/Properties/HashesViewModel.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,7 @@ public string FindMatchingAlgorithm(string hash)
165165
if (string.IsNullOrEmpty(hash))
166166
return string.Empty;
167167

168-
return Hashes
169-
.FirstOrDefault(h => h.HashValue?.Equals(hash, StringComparison.OrdinalIgnoreCase) == true)
170-
?.Algorithm ?? string.Empty;
168+
return Hashes.FirstOrDefault(h => h.HashValue?.Equals(hash, StringComparison.OrdinalIgnoreCase) == true)?.Algorithm ?? string.Empty;
171169
}
172170

173171
public async Task<string> CalculateFileHashAsync(string filePath)
@@ -200,8 +198,7 @@ private async Task OnCompareFileAsync()
200198
false,
201199
[],
202200
Environment.SpecialFolder.Desktop,
203-
out var filePath
204-
);
201+
out var filePath);
205202

206203
HashInput = result && filePath != null
207204
? await CalculateFileHashAsync(filePath)

0 commit comments

Comments
 (0)