Skip to content

Commit 900704d

Browse files
committed
Fix a few more code smells
1 parent 3487b77 commit 900704d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/TestableIO.System.IO.Abstractions.TestingHelpers/Events/MockFileSystemEvents.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,9 @@ public IDisposable Subscribe(Action<FileSystemOperationEventArgs> handler)
9595
/// <returns>A disposable that removes the subscription when disposed.</returns>
9696
public IDisposable Subscribe(FileOperation operation, Action<FileSystemOperationEventArgs> handler)
9797
{
98-
if (handler == null)
98+
if (handler == null) {
9999
throw new ArgumentNullException(nameof(handler));
100+
}
100101

101102
lock (LockObject)
102103
{
@@ -225,8 +226,9 @@ internal void RaiseOperation(
225226
ResourceType resourceType,
226227
OperationPhase phase)
227228
{
228-
if (!isEnabled)
229+
if (!isEnabled) {
229230
return;
231+
}
230232

231233
var args = new FileSystemOperationEventArgs(path, operation, resourceType, phase);
232234
Subscription[] currentSubscriptions;
@@ -387,4 +389,4 @@ public void Dispose()
387389
parent.RemoveSubscription(this);
388390
}
389391
}
390-
}
392+
}

0 commit comments

Comments
 (0)