Skip to content

Commit

Permalink
pkg/mistconnector: Fix issue with 0 being treated as boolean type. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
hjpotter92 authored Feb 2, 2022
1 parent 398e89f commit d0007cf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/mistconnector/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ func PrintMistConfigJson(name, description, friendlyName, version string, flagSe
if len(f.DefValue) > 0 {
if isIntType(f.DefValue) {
flagType = "uint"
}
if isBoolType(f.DefValue) {
} else if isBoolType(f.DefValue) {
flagType = ""
}
}
Expand Down

0 comments on commit d0007cf

Please sign in to comment.