Skip to content

Commit

Permalink
Prevent annoying warnings on devel
Browse files Browse the repository at this point in the history
  • Loading branch information
zedeus committed Nov 1, 2023
1 parent 33bad37 commit 006b91c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/parser.nim
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,8 @@ proc parseGraphTweet(js: JsonNode; isLegacy=false): Tweet =
return Tweet(text: "You're unable to view this Tweet because it's only available to the Subscribers of the account owner.")
of "TweetWithVisibilityResults":
return parseGraphTweet(js{"tweet"}, isLegacy)
else:
discard

if not js.hasKey("legacy"):
return Tweet()
Expand Down

0 comments on commit 006b91c

Please sign in to comment.