Skip to content

Commit

Permalink
Fix new linter rules
Browse files Browse the repository at this point in the history
  • Loading branch information
skryukov committed Apr 4, 2024
1 parent 4be1b2d commit 664fe06
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/json_skooma/json_pointer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def initialize(path)
if path.is_a?(Array)
@path = path
else
super CGI.unescape(path)
super(CGI.unescape(path))
end
end

Expand Down
2 changes: 1 addition & 1 deletion lib/json_skooma/validators/time.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def valid_leap_seconds?(match)
if match[:on]
sign = (match[:on] == "+") ? -1 : 1
time += sign * (match[:oh].to_i * 60 + match[:om].to_i)
time = time % (60 * 24)
time %= (60 * 24)
end
leap_time = 23 * 60 + 59
time == leap_time
Expand Down

0 comments on commit 664fe06

Please sign in to comment.