Skip to content

Commit

Permalink
rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
JensRavens committed Jun 25, 2024
1 parent 4d350de commit e5ec7ec
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
AllCops:
TargetRubyVersion: 3.1
SuggestExtensions: false

inherit_gem:
shimmer: config/rubocop_base.yml
Expand Down
4 changes: 2 additions & 2 deletions app/models/harvest_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ def api(path)
"https://api.harvestapp.com/v2/#{path}"
end

def get(path, **options)
response = HTTParty.get(api(path), headers:, **options)
def get(path, **)
response = HTTParty.get(api(path), headers:, **)
raise StandardError, "wrong response from Harvest: #{response.code} #{response.message}" unless response.ok?

response
Expand Down
4 changes: 2 additions & 2 deletions app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ def used_holidays
leaves_this_year.reject(&:rejected?).select(&:paid?).flat_map(&:days).count
end

def send_devise_notification(notification, *args)
devise_mailer.send(notification, self, *args).deliver_later
def send_devise_notification(notification, *)
devise_mailer.send(notification, self, *).deliver_later
end

def notify!(message)
Expand Down

0 comments on commit e5ec7ec

Please sign in to comment.