refactor(api): remove unnecessary or wrong is keyword usage

This commit is contained in:
JuniorJPDJ 2022-11-06 18:11:39 +01:00
commit 64e7c68699
12 changed files with 14 additions and 16 deletions

View file

@ -249,7 +249,7 @@ FID_MODEL_LABELS = [
def get_object_by_fid(fid, local=None):
if local is True:
if local:
parsed = urllib.parse.urlparse(fid)
if parsed.netloc != settings.FEDERATION_HOSTNAME:
raise ObjectDoesNotExist()