mirror of
https://github.com/zedeus/nitter
synced 2026-09-06 07:09:31 +00:00
Compare string length instead of empty string
This commit is contained in:
parent
abe21e3ebf
commit
89b6cfdf98
3 changed files with 6 additions and 6 deletions
|
|
@ -81,7 +81,7 @@ proc linkUser*(profile: Profile; h: string; username=true; class=""): string =
|
|||
if username: "@" & profile.username
|
||||
else: formatName(profile)
|
||||
|
||||
if h == "":
|
||||
if h.len == 0:
|
||||
return htmlgen.a(text, href = &"/{profile.username}", class=class)
|
||||
|
||||
let element = &"<{h} class=\"{class}\">{text}</{h}>"
|
||||
|
|
|
|||
Loading…
Reference in a new issue