Skip to content

Commit

Permalink
MNT #474 remove unused variables per LGTM
Browse files Browse the repository at this point in the history
  • Loading branch information
prjemian committed Jan 13, 2021
1 parent 2635f0a commit ee8122a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions apstools/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,10 +287,8 @@ def getDatabase(db=None, catalog_name=None):
):
# in case a catalog was passed as catalog_name
db = catalog_name
catalog_name = db.name
elif catalog_name is None:
db = getDefaultDatabase()
catalog_name = db.name
else:
db = databroker.catalog[catalog_name]
return db.v2
Expand Down

0 comments on commit ee8122a

Please sign in to comment.