Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 465aaf1

Browse files
alinasmirnovaAndreyAkinshin
authored andcommitted
Fixed empty catch warning
1 parent 148165b commit 465aaf1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

samples/BenchmarkDotNet.Samples/IntroExceptionDiagnoser.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ public void ThrowExceptionRandomly()
1616
throw new Exception();
1717
}
1818
}
19-
catch { }
19+
catch
20+
{
21+
// ignored
22+
}
2023
}
2124
}
2225
}

0 commit comments

Comments
 (0)