Skip to content

Commit

Permalink
Remove unnecessary or_
Browse files Browse the repository at this point in the history
Co-authored-by: Dustin Ingram <di@users.noreply.github.com>
  • Loading branch information
twm and di committed Sep 24, 2024
1 parent d6e0b3f commit 18bfa3f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions warehouse/packaging/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

from packaging.utils import canonicalize_name
from pyramid.httpexceptions import HTTPBadRequest, HTTPConflict, HTTPForbidden
from sqlalchemy import exists, func, or_
from sqlalchemy import exists, func
from zope.interface import implementer

from warehouse.admin.flags import AdminFlagValue
Expand Down Expand Up @@ -586,10 +586,8 @@ def create_project(
stale_pending_publishers = (
request.db.query(PendingOIDCPublisher)
.filter(
or_(
func.ultranormalize_name(PendingOIDCPublisher.project_name)
== func.ultranormalize_name(project.name),
),
func.ultranormalize_name(PendingOIDCPublisher.project_name)
== func.ultranormalize_name(project.name),
PendingOIDCPublisher.added_by != creator,
)
.all()
Expand Down

0 comments on commit 18bfa3f

Please sign in to comment.