Skip to content

Commit

Permalink
chore: remove unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
max-moser committed Sep 7, 2023
1 parent 6eb8729 commit f0a7da0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions invenio_rdm_records/fixtures/demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ def fake_resource_type(cls):
if not cls._resource_type_ids:
cls._resource_type_ids = []

dir_ = Path(__file__).parent

res_types = cls._read_vocabulary("resourcetypes")

for res in res_types:
Expand Down
2 changes: 1 addition & 1 deletion invenio_rdm_records/services/pids/providers/external.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def validate(self, record, identifier=None, provider=None, client=None, **kwargs
success, errors = super().validate(record, identifier, provider, **kwargs)

if not identifier:
error = self._insert_pid_type_error_msg(
self._insert_pid_type_error_msg(
errors,
_("Missing {scheme} for required field.").format(scheme=self.label),
)
Expand Down

0 comments on commit f0a7da0

Please sign in to comment.