Skip to content

Commit

Permalink
Revert use of pattern matching; CI can't compile.
Browse files Browse the repository at this point in the history
  • Loading branch information
lilith committed Dec 13, 2017
1 parent 8df32aa commit 8a650b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Core/Plugins/Basic/DiagnoseRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ protected override RequestedAction PreFlushChanges(ImageState s)
{

if (!s.Data.ContainsKey("debug")) return RequestedAction.None;
if (!(s.Data["debug"] is StringBuilder log)) return RequestedAction.None;
var log = s.Data["debug"] as StringBuilder;
if (log == null) return RequestedAction.None;
var kind = s.settings.Get("resizer.debug", DebugType.None);

log?.AppendLine(
Expand Down

0 comments on commit 8a650b5

Please sign in to comment.