@@ -56,19 +56,19 @@ func compareStats(stat, comparisonStat, goal string) (state, string, error) {
56
56
57
57
if goal == "decrease" {
58
58
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
60
60
} 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
62
62
} 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
64
64
}
65
65
} else if goal == "increase" {
66
66
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
68
68
} 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
70
70
} 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
72
72
}
73
73
} else {
74
74
return stateError , "unknown goal" , errors .New ("unknown goal" )
0 commit comments