Skip to content

Commit

Permalink
chore: pycodestyle fix
Browse files Browse the repository at this point in the history
  • Loading branch information
slint committed Dec 7, 2023
1 parent 1cd5a81 commit a6ee30a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions invenio_rdm_records/resources/serializers/cff/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ def get_authors(self, obj):

def get_contact(self, obj):
"""Serializes contact person, if any."""

metadata = obj.get("metadata", {})

result = {}
Expand Down Expand Up @@ -212,7 +211,6 @@ def get_repository_code(self, obj):
As defined by CFF, a repository is represented by its URL.
The URL of the work in a source code repository.
"""

resource_type = obj.get("metadata", {}).get("resource_type", {}).get("id")

if resource_type != "software":
Expand Down

0 comments on commit a6ee30a

Please sign in to comment.