Skip to content

Commit

Permalink
parentheses for clarity.
Browse files Browse the repository at this point in the history
  • Loading branch information
Owen3H committed Aug 11, 2023
1 parent 84141aa commit a3a5968
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/classes/timeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ export default class Timeline {

const includeReplies = options.replies || false
const includeRts = options.retweets || false

const tweets = timeline.map(e => new TimelineTweet(e.content.tweet))
return tweets.filter(twt =>
twt.isRetweet === includeRts &&
twt.isReply === includeReplies
(twt.isRetweet === includeRts) &&
(twt.isReply === includeReplies)
)
}

Expand Down

0 comments on commit a3a5968

Please sign in to comment.