Pārlūkot izejas kodu

Don't not keep going if stopifnot condition was TRUE

simplify
Garrick Aden-Buie pirms 7 gadiem
vecāks
revīzija
d01229d424
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      R/tweet_io.R

+ 1
- 1
R/tweet_io.R Parādīt failu

if (nrow(tweets_not_new)) { if (nrow(tweets_not_new)) {
tweets <- bind_rows(tweets, 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") log_fatal("An error occurred that would have lost stored tweets")
} }
} }

Notiek ielāde…
Atcelt
Saglabāt