mirror of
https://github.com/github/codeql.git
synced 2025-12-22 11:46:32 +01:00
20 lines
356 B
C#
20 lines
356 B
C#
class FutileConditional
|
|
{
|
|
static void Main(string[] args)
|
|
{
|
|
if (args.Length > 10) ; // BAD
|
|
if (args.Length > 8)
|
|
{
|
|
// BAD
|
|
}
|
|
if (args.Length > 6)
|
|
{
|
|
// GOOD: because of else-branch
|
|
}
|
|
else
|
|
{
|
|
System.Console.WriteLine("hello");
|
|
}
|
|
}
|
|
}
|