Skip to content

Commit

Permalink
Prevent -precision with -set or -mset options
Browse files Browse the repository at this point in the history
  • Loading branch information
josephburnett committed Feb 24, 2024
1 parent 56b2cb3 commit 1e10b14
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ func serveWeb(port string) error {
}

func parseMetadata() ([]jd.Metadata, error) {
if *precision != 0.0 && (*set || *mset) {
return nil, fmt.Errorf("-precision cannot be used with -set or -mset because they use hashcodes")
}
metadata := make([]jd.Metadata, 0)
if *set {
metadata = append(metadata, jd.SET)
Expand Down

0 comments on commit 1e10b14

Please sign in to comment.