Skip to content

Commit

Permalink
style: brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed May 21, 2022
1 parent f2e798f commit 6035579
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/pact_broker/api/resources/tag.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def allowed_methods

def from_json
unless tag
@tag = tag_service.create identifier_from_path
@tag = tag_service.create(identifier_from_path)
# Make it return a 201 by setting the Location header
response.headers["Location"] = tag_url(base_url, tag)
end
Expand All @@ -36,11 +36,11 @@ def to_json
end

def tag
@tag ||= tag_service.find identifier_from_path
@tag ||= tag_service.find(identifier_from_path)
end

def delete_resource
tag_service.delete identifier_from_path
tag_service.delete(identifier_from_path)
true
end

Expand Down

0 comments on commit 6035579

Please sign in to comment.