Files
codeql/csharp/ql/test/query-tests/Bad Practices/EmptyCatchBlock/EmptyCatchBlock.cs
2018-08-02 17:53:23 +01:00

26 lines
307 B
C#

using System;
class EmptyCatchBlock
{
void bad()
{
try
{
}
catch (Exception)
{
}
}
void good()
{
try
{
}
catch (Exception)
{
// GOOD: This catch block should be empty
}
}
}