浏览代码

Don't not keep going if stopifnot condition was TRUE

simplify
父节点
当前提交
d01229d424
共有 1 个文件被更改,包括 1 次插入 和 1 次删除
  1. +1
    -1
      R/tweet_io.R

+ 1
- 1
R/tweet_io.R 查看文件

@@ -22,7 +22,7 @@ save_tweets <- function(
if (nrow(tweets_not_new)) {
tweets <- bind_rows(tweets, tweets_not_new)
}
if (length(setdiff(tweets_prev$status_id, tweets$status_id)) == 0) {
if (length(setdiff(tweets_prev$status_id, tweets$status_id)) != 0) {
log_fatal("An error occurred that would have lost stored tweets")
}
}

正在加载...
取消
保存