Browse Source

remove yoda condition

Motkov.Kirill 6 years atrás
parent
commit
50a99c1e54
1 changed files with 1 additions and 1 deletions
  1. 1 1
      main.go

+ 1 - 1
main.go

@@ -204,7 +204,7 @@ func cleanup() int {
 }
 
 func main() {
-	if 0 == os.Geteuid() {
+	if os.Geteuid() == 0 {
 		fmt.Fprintln(os.Stderr, "Please avoid running yay as root/sudo.")
 	}