Skip to content

Commit 9165920

Browse files
committed
Code Quality: Removed extra using
1 parent 355bf0c commit 9165920

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/Files.App/Services/Windows/WindowsIniService.cs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// Copyright (c) 2024 Files Community
22
// Licensed under the MIT License. See the LICENSE.
33

4-
using System.IO;
5-
64
namespace Files.App.Services
75
{
86
/// <inheritdoc cref="IWindowsIniService"/>
@@ -11,18 +9,18 @@ public sealed class WindowsIniService : IWindowsIniService
119
/// <inheritdoc/>
1210
public List<IniSectionDataItem> GetData(string filePath)
1311
{
14-
if (!File.Exists(filePath))
12+
if (!SystemIO.File.Exists(filePath))
1513
return [];
1614

1715
var lines = Enumerable.Empty<string>().ToList();
1816

1917
try
2018
{
21-
lines = File.ReadLines(filePath)
19+
lines = SystemIO.File.ReadLines(filePath)
2220
.Where(line => !line.StartsWith(';') && !string.IsNullOrEmpty(line))
2321
.ToList();
2422
}
25-
catch (Exception ex) when (ex is UnauthorizedAccessException || ex is FileNotFoundException)
23+
catch (Exception ex) when (ex is UnauthorizedAccessException || ex is SystemIO.FileNotFoundException)
2624
{
2725
return [];
2826
}

0 commit comments

Comments
 (0)