mirror of
https://github.com/github/codeql.git
synced 2026-01-31 07:12:57 +01:00
26 lines
399 B
Go
26 lines
399 B
Go
package main
|
|
|
|
import "os"
|
|
|
|
func main() {
|
|
if len(os.Args) < 0 { // NOT OK
|
|
println("No arguments provided.")
|
|
}
|
|
|
|
if len(os.Args) <= 0 { // OK
|
|
println("No arguments provided.")
|
|
}
|
|
|
|
if cap(os.Args) < 0 { // NOT OK
|
|
println("Out of space!")
|
|
}
|
|
|
|
if len(os.Args) <= -1 { // NOT OK
|
|
println("No arguments provided.")
|
|
}
|
|
|
|
if len(os.Args) == -1 { // NOT OK
|
|
println("No arguments provided.")
|
|
}
|
|
}
|