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

Commit 1b713d8

Browse files
committed
Minor completions code rearrangement
1 parent deb3441 commit 1b713d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SQLToolsAPI/Completion.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def _stripQuotes(ident):
2222
# used for formatting output
2323
def _stripQuotesOnDemand(ident, doStrip=True):
2424
if doStrip:
25-
return ident.strip('"\'`')
25+
return _stripQuotes(ident)
2626
return ident
2727

2828
def _startsWithQuote(ident):
@@ -32,7 +32,7 @@ def _startsWithQuote(ident):
3232
def _stripPrefix(text, prefix):
3333
if text.startswith(prefix):
3434
return text[len(prefix):]
35-
return text # or whatever
35+
return text
3636

3737

3838
class CompletionItem(namedtuple('CompletionItem', ['type', 'ident', 'score'])):

0 commit comments

Comments
 (0)