Skip to content
This repository was archived by the owner on Mar 12, 2020. It is now read-only.

Commit 1966189

Browse files
committed
Fix codacy issues
1 parent 56d1330 commit 1966189

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

SQLTools.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,8 @@ def cb(index):
407407

408408

409409
class StDescTable(WindowCommand):
410-
def run(self):
410+
@staticmethod
411+
def run():
411412
currentSyntax = getCurrentSyntax()
412413

413414
if not ST.conn:

SQLToolsAPI/Connection.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,6 @@ def builArgs(self, queryName=None):
174174
# append otional args (if any) - could be a single value or a list
175175
optionalArgs = cliOptions.get('args_optional')
176176
if optionalArgs: # only if we have optional args
177-
formattedOptArgList = []
178177
if isinstance(optionalArgs, list):
179178
for item in optionalArgs:
180179
formattedItem = self.formatOptionalArgument(item, self.options)
@@ -183,7 +182,7 @@ def builArgs(self, queryName=None):
183182
else:
184183
formattedItem = self.formatOptionalArgument(optionalArgs, self.options)
185184
if formattedItem:
186-
args = args + shlex.split(formattedItem)
185+
args = args + shlex.split(formattedItem)
187186

188187
# append query specific options
189188
if queryName:

0 commit comments

Comments
 (0)