Skip to content

Commit

Permalink
Fixed lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
RikuVirtanen committed Dec 19, 2023
1 parent a1c464b commit 237d553
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Frends.FTP.ListFiles/Frends.FTP.ListFiles/ListFiles.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ public static async Task<Result> ListFiles([PropertyTab] Input input, [PropertyT
{
try
{
using var client = CreateFtpClient(connection);
using FtpClient client = CreateFtpClient(connection);

await client.ConnectAsync(cancellationToken);

if (!client.DirectoryExists(input.Directory))
Expand All @@ -51,7 +51,7 @@ public static async Task<Result> ListFiles([PropertyTab] Input input, [PropertyT
catch (SocketException)
{
throw new ArgumentException("Unable to establish the socket: No such host is known.");
}
}
}

private static FtpClient CreateFtpClient(Connection connect)
Expand Down

0 comments on commit 237d553

Please sign in to comment.