Skip to content

Commit

Permalink
refactor: Simplify all_stars assignment in get_calendar_html
Browse files Browse the repository at this point in the history
  • Loading branch information
WillLillis committed Nov 22, 2023
1 parent 3becde5 commit 39cf606
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions aoc-client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -384,11 +384,7 @@ impl AocClient {
))
.unwrap();

let all_stars = if main.contains("calendar calendar-perfect") {
true
} else {
false
};
let all_stars = main.contains("calendar calendar-perfect");

// Remove stars that have not been collected
let calendar = cleaned_up
Expand Down

0 comments on commit 39cf606

Please sign in to comment.