Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 87ad96b

Browse files
committed
Minor cosmetic fix
1 parent 7ba0da6 commit 87ad96b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

plugins/generic/search.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,10 @@ def searchTable(self):
318318
foundTbl = safeSQLIdentificatorNaming(foundTbl, True)
319319
foundTbls[db].append(foundTbl)
320320

321+
for db in foundTbls.keys():
322+
if not foundTbls[db]:
323+
del foundTbls[db]
324+
321325
if not foundTbls:
322326
warnMsg = "no databases contain any of the provided tables"
323327
logger.warn(warnMsg)

0 commit comments

Comments
 (0)