浏览代码

Prevent annoying warnings on devel

Zed 2 年之前
父节点
当前提交
006b91c903
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/parser.nim

+ 2 - 0
src/parser.nim

@@ -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()