Skip to content
This repository has been archived by the owner on May 15, 2023. It is now read-only.

Commit

Permalink
Fixed unsupported syntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Atkinson committed Apr 12, 2017
1 parent ea7e3bb commit 7b4cbb2
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ public class DelegatingSink : ILogEventSink

public DelegatingSink(Action<LogEvent> write)
{
_write = write ?? throw new ArgumentNullException(nameof(write));
if (write == null) throw new ArgumentNullException(nameof(write));
_write = write;
}

public void Emit(LogEvent logEvent)
Expand All @@ -32,4 +33,4 @@ public static LogEvent GetLogEvent(Action<ILogger> writeAction)
}
}
}
}
}

0 comments on commit 7b4cbb2

Please sign in to comment.