Skip to content

Commit e356fbd

Browse files
committed
Better descriptions for status
1 parent c2e6e19 commit e356fbd

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

internal/status/main.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,19 +56,19 @@ func compareStats(stat, comparisonStat, goal string) (state, string, error) {
5656

5757
if goal == "decrease" {
5858
if statNum < prevStatNum {
59-
return stateSuccess, fmt.Sprintf("%s is less than %s", stat, comparisonStat), nil
59+
return stateSuccess, fmt.Sprintf("%s - less than %s", stat, comparisonStat), nil
6060
} else if statNum == prevStatNum {
61-
return stateSuccess, fmt.Sprintf("%s is same as %s", stat, comparisonStat), nil
61+
return stateSuccess, fmt.Sprintf("%s - no change", stat), nil
6262
} else {
63-
return stateFailure, fmt.Sprintf("%s is more than %s", stat, comparisonStat), nil
63+
return stateFailure, fmt.Sprintf("%s - more than %s", stat, comparisonStat), nil
6464
}
6565
} else if goal == "increase" {
6666
if statNum > prevStatNum {
67-
return stateSuccess, fmt.Sprintf("%s is more than %s", stat, comparisonStat), nil
67+
return stateSuccess, fmt.Sprintf("%s - more than %s", stat, comparisonStat), nil
6868
} else if statNum == prevStatNum {
69-
return stateSuccess, fmt.Sprintf("%s is same as %s", stat, comparisonStat), nil
69+
return stateSuccess, fmt.Sprintf("%s - no change", stat), nil
7070
} else {
71-
return stateFailure, fmt.Sprintf("%s is less than %s", stat, comparisonStat), nil
71+
return stateFailure, fmt.Sprintf("%s - less than %s", stat, comparisonStat), nil
7272
}
7373
} else {
7474
return stateError, "unknown goal", errors.New("unknown goal")

0 commit comments

Comments
 (0)