Skip to content

Commit

Permalink
Revert false positive MA0071: Avoid using redundant else
Browse files Browse the repository at this point in the history
  • Loading branch information
vbreuss committed Jan 12, 2025
1 parent 662a303 commit 7ac3c1a
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,7 @@ private FileStreamMock(MemoryStream stream,

throw ExceptionFactory.FileAlreadyExists(
_fileSystem.Execute.Path.GetFullPath(base.Name), 17);
}

if (_mode.Equals(FileMode.CreateNew))
} else if (_mode.Equals(FileMode.CreateNew))
{
throw ExceptionFactory.FileAlreadyExists(
_fileSystem.Execute.Path.GetFullPath(Name),
Expand Down

0 comments on commit 7ac3c1a

Please sign in to comment.