frontend: cleanup telegram replies

This commit is contained in:
Lan Tian
2020-06-29 13:44:48 +08:00
parent df18bd153c
commit 721b3f6cc7
2 changed files with 9 additions and 3 deletions

View File

@@ -43,5 +43,9 @@ func dn42WhoisFilter(whois string) string {
commandResult += s + "\n"
}
return commandResult + fmt.Sprintf("\n%d line(s) skipped.\n", skippedLines)
if skippedLines > 0 {
return commandResult + fmt.Sprintf("\n%d line(s) skipped.\n", skippedLines)
} else {
return commandResult
}
}