Fix up to Macros in Core project

This commit is contained in:
Nikolaj Geisle
2022-01-13 09:27:37 +01:00
parent 521023372b
commit b6d5465b49
110 changed files with 537 additions and 451 deletions

View File

@@ -60,9 +60,13 @@ namespace Umbraco.Extensions
public static void CopyFile(this IFileSystem fs, string path, string newPath)
{
using (var stream = fs.OpenFile(path))
using (Stream? stream = fs.OpenFile(path))
{
fs.AddFile(newPath, stream);
if (stream is not null)
{
fs.AddFile(newPath, stream);
}
}
}