mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
Refactor nil checks, remove getAttr
This commit is contained in:
parent
a43950dcf5
commit
e2039ec81c
5 changed files with 48 additions and 52 deletions
|
|
@ -44,7 +44,7 @@ routes:
|
|||
cond '.' notin @"name"
|
||||
|
||||
let conversation = await getTweet(@"name", @"id")
|
||||
if conversation.isNil or conversation.tweet.id.len == 0:
|
||||
if conversation == nil or conversation.tweet.id.len == 0:
|
||||
resp Http404, showError("Tweet not found")
|
||||
|
||||
let title = pageTitle(conversation.tweet.profile)
|
||||
|
|
|
|||
Loading…
Reference in a new issue