mirror of
https://github.com/yusing/godoxy.git
synced 2025-06-09 13:02:33 +02:00
fix "do you mean" error formatting
This commit is contained in:
parent
f2a9ddd1a6
commit
c66694aa32
1 changed files with 3 additions and 0 deletions
|
@ -63,6 +63,9 @@ func PortString(port uint16) string {
|
||||||
}
|
}
|
||||||
|
|
||||||
func DoYouMean(s string) string {
|
func DoYouMean(s string) string {
|
||||||
|
if s == "" {
|
||||||
|
return ""
|
||||||
|
}
|
||||||
return "Did you mean " + ansi.HighlightGreen + s + ansi.Reset + "?"
|
return "Did you mean " + ansi.HighlightGreen + s + ansi.Reset + "?"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue