Skip to content

Commit

Permalink
Call super without arguments and parentheses when the signature is id…
Browse files Browse the repository at this point in the history
…entical
  • Loading branch information
bobbrodie committed Aug 10, 2024
1 parent 10b4e42 commit 1120994
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/jira/resource/field.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def method_missing(method_name, *args, &)
if attrs.key?(official_name)
attrs[official_name]
else
super(method_name, *args, &)
super
end
end
end
Expand Down
4 changes: 2 additions & 2 deletions lib/jira/resource/issue.rb
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,11 @@ def method_missing(method_name, *args, &)
if attrs['fields'].key?(official_name)
attrs['fields'][official_name]
else
super(method_name, *args, &)
super
end
end
else
super(method_name, *args, &)
super
end
end
end
Expand Down

0 comments on commit 1120994

Please sign in to comment.