Skip to content

Commit 8a42b64

Browse files
Code/documentation cleanup
1 parent bcead5e commit 8a42b64

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

src/Umbraco.StorageProviders.AzureBlob/IO/AzureBlobFileSystemOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public class AzureBlobFileSystemOptions
2727
/// <summary>
2828
/// The root path of the container.
2929
/// </summary>
30-
public string ContainerRootPath { get; set; } = null!;
30+
public string? ContainerRootPath { get; set; }
3131

3232
/// <summary>
3333
/// The virtual path.

src/Umbraco.StorageProviders.AzureBlob/IO/IAzureBlobFileSystem.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,17 @@
44
namespace Umbraco.StorageProviders.AzureBlob.IO
55
{
66
/// <summary>
7-
/// The Azure Blob File System.
7+
/// Represents an Azure Blob Storage file system.
88
/// </summary>
99
public interface IAzureBlobFileSystem : IFileSystem
1010
{
1111
/// <summary>
12-
/// Get the <see cref="BlobClient"/>.
12+
/// Get the <see cref="BlobClient" />.
1313
/// </summary>
1414
/// <param name="path">The relative path to the blob.</param>
15-
/// <returns>A <see cref="BlobClient"/></returns>
15+
/// <returns>
16+
/// A <see cref="BlobClient" />.
17+
/// </returns>
1618
BlobClient GetBlobClient(string path);
1719
}
1820
}

src/Umbraco.StorageProviders.AzureBlob/Imaging/AzureBlobFileSystemImageCache.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,12 @@ protected AzureBlobFileSystemImageCache(string name, IOptionsMonitor<AzureBlobFi
5353
{
5454
var blob = _container.GetBlobClient(_cachePath + key);
5555

56-
if (await blob.ExistsAsync().ConfigureAwait(false))
57-
return new AzureBlobStorageCacheResolver(blob);
56+
if (!await blob.ExistsAsync().ConfigureAwait(false))
57+
{
58+
return null;
59+
}
5860

59-
return null;
61+
return new AzureBlobStorageCacheResolver(blob);
6062
}
6163

6264
/// <inheritdoc />

0 commit comments

Comments
 (0)