Skip to content

Commit

Permalink
chore: refactor method
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaxwood committed Dec 3, 2023
1 parent a228bbc commit a9327e2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/day03.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@ def parse_number(map, from, to, y)
end

def valid_char?(candidate)
if candidate != "." and !candidate.match?(/\d/)
return true
end
false
candidate != "." and !candidate.match?(/\d/)
end

def is_valid?(map, from, to, y)
Expand Down

0 comments on commit a9327e2

Please sign in to comment.