Skip to content

Commit a19fd2f

Browse files
committed
code cleanup
1 parent 4cd4086 commit a19fd2f

4 files changed

Lines changed: 5 additions & 21 deletions

File tree

FileSystem/src/Exceptions/AdapterNotFoundException.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public AdapterNotFoundException(string prefix, IList<IAdapter> adapters) : base(
1818
private static string GetMessage(string prefix, IEnumerable<IAdapter> adapters)
1919
{
2020
var adaptersString = string.Join("', '", adapters.Select(adapter => adapter.Prefix).ToArray());
21-
21+
2222
return $"No adapter found with prefix '{prefix}'. Registered adapters are: '{adaptersString}'.";
2323
}
2424
}

FileSystem/src/Models/Model.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ public abstract class Model
77
public string Name { get; set; } = "";
88
public string Path { get; set; } = "";
99
public string VirtualPath { get; set; } = "";
10-
public DateTime? LastModifiedDateTime {get; set; }
11-
public DateTime? CreatedDateTime {get; set; }
10+
public DateTime? LastModifiedDateTime { get; set; }
11+
public DateTime? CreatedDateTime { get; set; }
1212
}
1313
}

Tests/src/FileSystem.Adapters.AmazonS3/AmazonS3AdapterTest.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
using System.IO;
44
using System.Linq;
55
using System.Net;
6+
using System.Text;
67
using System.Threading.Tasks;
78
using Amazon.Runtime;
89
using Amazon.S3;
@@ -428,7 +429,7 @@ public async Task Test_Read_File_Async()
428429

429430
var fileContents = await fileSystem.ReadFileAsync("prefix-1://test1.txt");
430431

431-
Assert.Equal("test1", System.Text.Encoding.UTF8.GetString(fileContents));
432+
Assert.Equal("test1", Encoding.UTF8.GetString(fileContents));
432433
await Assert.ThrowsAsync<FileNotFoundException>(() => fileSystem.ReadFileAsync("prefix-1://test2.txt"));
433434
await Assert.ThrowsAsync<ConnectionException>(() => fileSystem.ReadFileAsync("prefix-1://test3.txt"));
434435
await Assert.ThrowsAsync<ConnectionException>(() => fileSystem.ReadFileAsync("prefix-1://test4.txt"));

Tests/src/FileSystem.Adapters.GoogleDrive/TestHttpMessageHandler.cs

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)