Skip to content

Commit

Permalink
fix and/or condition bug
Browse files Browse the repository at this point in the history
  • Loading branch information
aditsachde committed Jul 30, 2024
1 parent 869d487 commit 5cb5421
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/itko-monitor/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ func main() {
maskSize := flag.Int("mask-size", 0, "Mask size for the quadtree.")
flag.Parse()

if *storeDirectory == "" || *storeAddress == "" {
fmt.Println("Error: -store-address or -store-address flag must be set")
if *storeDirectory == "" && *storeAddress == "" {
fmt.Println("Error: -store-directory or -store-address flag must be set")
flag.Usage() // Print the usage message
os.Exit(1) // Exit with a non-zero status
}
Expand Down

0 comments on commit 5cb5421

Please sign in to comment.