Skip to content

Commit

Permalink
ui: removed unnecessary variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Fatimah authored and kpsherva committed Oct 11, 2023
1 parent 9815dd4 commit abfa954
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions invenio_communities/views/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ def not_found_error(error):

def record_tombstone_error(error):
"""Tombstone page."""
is_user = getattr(error, "is_user", False)
record = getattr(error, "record", None)
if (record_ui := getattr(error, "result_item", None)) is not None:
if record is None:
Expand All @@ -68,7 +67,6 @@ def record_tombstone_error(error):
render_template(
"invenio_communities/tombstone.html",
record=record_ui,
is_user=is_user,
),
410,
)
Expand Down

0 comments on commit abfa954

Please sign in to comment.