Skip to content

Commit

Permalink
Merge pull request #46 from NETWAYS/remove_double_default
Browse files Browse the repository at this point in the history
Do not print defaults twice
  • Loading branch information
RincewindsHat authored Jun 11, 2024
2 parents 142e6e4 + cba78d8 commit fffb5b9
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion internal/common/thresholds/thresholds.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ func AddFlags(flagP *pflag.FlagSet, ths *[]ThresholdOption) {
desc.WriteString((*ths)[i].Description)

if (*ths)[i].Default.IsSet {
desc.WriteString(" (Default: " + (*ths)[i].Default.Th.String() + ")")
(*ths)[i].Th.IsSet = (*ths)[i].Default.IsSet
(*ths)[i].Th.Th = (*ths)[i].Default.Th
}
Expand Down

0 comments on commit fffb5b9

Please sign in to comment.