Skip to content

Commit

Permalink
Fixed some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
HarshilShah committed Dec 21, 2022
1 parent 8e19952 commit 868b55a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion 2022/Sources/2022/Day19.swift
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ struct Day19: Day {
var queue = Deque([Game()])
var visited: Set<Game> = []

while var game = queue.popFirst() {
while let game = queue.popFirst() {
if visited.insert(game).inserted == false {
continue
}
Expand Down
2 changes: 1 addition & 1 deletion 2022/Sources/2022/Day20.swift
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ struct Day20: Day {
func mix(nodes queue: Deque<Node>, count: Int) {
var queue = queue

while var current = queue.popFirst() {
while let current = queue.popFirst() {
if current.value == 0 {
continue
} else if current.value < 0 {
Expand Down

0 comments on commit 868b55a

Please sign in to comment.