Add nullability to web.common
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.IO;
|
||||
using System.Security.Cryptography;
|
||||
using System.Text;
|
||||
@@ -101,7 +102,7 @@ namespace Umbraco.Extensions
|
||||
/// <returns>
|
||||
/// <c>true</c> if the <see cref="IFileProvider" /> was successfully created; otherwise, <c>false</c>.
|
||||
/// </returns>
|
||||
public static bool TryCreateFileProvider(this IFileSystem fileSystem, out IFileProvider? fileProvider)
|
||||
public static bool TryCreateFileProvider(this IFileSystem fileSystem, [MaybeNullWhen(false)] out IFileProvider fileProvider)
|
||||
{
|
||||
fileProvider = fileSystem switch
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user