]> Cypherpunks.ru repositories - nncp.git/blobdiff - src/cypherpunks.ru/nncp/cmd/nncp-check/main.go
Fix mistaken comparison logic
[nncp.git] / src / cypherpunks.ru / nncp / cmd / nncp-check / main.go
index e983760c94a6d63f0c585040858c75ed22534bce..a99bd2f0c20ee62c10d2029147fbe045919431c1 100644 (file)
@@ -75,7 +75,9 @@ func main() {
                if nodeOnly != nil && nodeId != *nodeOnly.Id {
                        continue
                }
-               isBad = isBad || ctx.Check(node.Id)
+               if !ctx.Check(node.Id) {
+                       isBad = true
+               }
        }
        if isBad {
                os.Exit(1)