Skip to content

Commit

Permalink
remove unused argument
Browse files Browse the repository at this point in the history
  • Loading branch information
syphax-bouazzouni committed Nov 17, 2022
1 parent 0545150 commit 39364c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ontologies_linked_data/serializers/json.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def self.serialize(obj, options = {})
end

# Add the type
hash["@type"] = type(current_cls, hash, hashed_obj) if hash["@id"]
hash["@type"] = type(current_cls, hashed_obj) if hash["@id"]

# Generate links
# NOTE: If this logic changes, also change in xml.rb
Expand All @@ -42,7 +42,7 @@ def self.serialize(obj, options = {})

private

def self.type(current_cls, hash, hashed_obj)
def self.type(current_cls, hashed_obj)
if current_cls.respond_to?(:type_uri)
# For internal class
proc = current_cls
Expand Down

0 comments on commit 39364c0

Please sign in to comment.