Skip to content

Commit

Permalink
Fixed warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
chrishamm committed Jun 21, 2023
1 parent cd901b6 commit bc0195f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/DuetControlServer/Model/Filter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ private static bool InternalGetSpecific(object partialModel, object[] partialFil
}
else if (partialModel is IModelDictionary dict && dict.Contains(propertyName))
{
object? dictItem = dict[propertyName];
object dictItem = dict[propertyName];
if (partialFilter.Length == 0)
{
if (!findSbcProperty || hadSbcProperty)
Expand Down
3 changes: 1 addition & 2 deletions src/DuetPluginService/Commands/InstallPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,8 @@ public override async Task Execute()
Directory.CreateDirectory(directory);
}

#warning check if this is fixed in ASP.NET 6
#if true
// Copy the file. ASP.NET 5 does not perform lstat on symlinks so files served from symlinks are always truncated
// Copy the file. ASP.NET 5/6 does not perform lstat on symlinks so files served from symlinks are always truncated
_logger.Debug("Copying {0} -> {1}", pluginWwwPath, installWwwPath);
File.Copy(pluginWwwPath, installWwwPath, true);
#else
Expand Down

0 comments on commit bc0195f

Please sign in to comment.