Skip to content

Commit

Permalink
Correct a typo
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Seiler <[email protected]>
  • Loading branch information
goggle authored and muesli committed Sep 20, 2023
1 parent 24c3369 commit 26ab7c7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,8 @@ func main() {
fmt.Fprintln(os.Stderr, fmt.Errorf("error parsing avail-threshold: invalid option '%s'", *availThreshold))
os.Exit(1)
}
for _, thresold := range availbilityThresholds {
_, err = stringToSize(thresold)
for _, threshold := range availbilityThresholds {
_, err = stringToSize(threshold)
if err != nil {
fmt.Fprintln(os.Stderr, "error parsing avail-threshold:", err)
os.Exit(1)
Expand All @@ -279,8 +279,8 @@ func main() {
fmt.Fprintln(os.Stderr, fmt.Errorf("error parsing usage-threshold: invalid option '%s'", *usageThreshold))
os.Exit(1)
}
for _, thresold := range usageThresholds {
_, err = strconv.ParseFloat(thresold, 64)
for _, threshold := range usageThresholds {
_, err = strconv.ParseFloat(threshold, 64)
if err != nil {
fmt.Fprintln(os.Stderr, "error parsing usage-threshold:", err)
os.Exit(1)
Expand Down

0 comments on commit 26ab7c7

Please sign in to comment.