feat(cmd/joj3): show keyword only on non-empty keyword
This commit is contained in:
parent
5d7be878e1
commit
d2c53205ac
|
@ -141,9 +141,11 @@ func newTeapotCheckStageResults(
|
||||||
comment := ""
|
comment := ""
|
||||||
forceQuit := false
|
forceQuit := false
|
||||||
for _, checkResult := range checkResults {
|
for _, checkResult := range checkResults {
|
||||||
|
if checkResult.Name != "" {
|
||||||
|
comment += fmt.Sprintf("keyword `%s` ", checkResult.Name)
|
||||||
|
}
|
||||||
comment += fmt.Sprintf(
|
comment += fmt.Sprintf(
|
||||||
"keyword `%s` in last %d hour(s): submit count %d, max count %d\n",
|
"in last %d hour(s): submit count %d, max count %d\n",
|
||||||
checkResult.Name,
|
|
||||||
checkResult.TimePeriod,
|
checkResult.TimePeriod,
|
||||||
checkResult.SubmitCount,
|
checkResult.SubmitCount,
|
||||||
checkResult.MaxCount,
|
checkResult.MaxCount,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user