Skip to content

Commit 3dc83af

Browse files
committed
Remove semicolons
Issue #20
1 parent 6da5e4f commit 3dc83af

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/complete.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ function nameCompletion(label: string, type: string, idQuote: string, idCaseInse
160160
}
161161

162162
function getClosingQuote(openingQuote: string) {
163-
return openingQuote === "[" ? "]" : openingQuote;
163+
return openingQuote === "[" ? "]" : openingQuote
164164
}
165165

166166
// Some of this is more gnarly than it has to be because we're also
@@ -202,7 +202,7 @@ export function completeFromSchema(schema: SQLNamespace,
202202

203203
if (quoted) {
204204
let openingQuote = quoted[0]
205-
let closingQuote = getClosingQuote(openingQuote);
205+
let closingQuote = getClosingQuote(openingQuote)
206206

207207
let quoteAfter = context.state.sliceDoc(context.pos, context.pos + 1) == closingQuote
208208

test/test-complete.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,10 +185,10 @@ describe("SQL completion", () => {
185185
})
186186

187187
it("can add MSSQL-style brackets as identifier quotes", () => {
188-
let dialect = SQLDialect.define({...MSSQL.spec, identifierQuotes: '['});
189-
let config = { schema: {"Foo": ["Bar"]}, dialect: dialect };
188+
let dialect = SQLDialect.define({...MSSQL.spec, identifierQuotes: '['})
189+
let config = { schema: {"Foo": ["Bar"]}, dialect: dialect }
190190

191-
ist(str(get("[Foo].b|", config)), "[Bar]");
191+
ist(str(get("[Foo].b|", config)), "[Bar]")
192192
})
193193

194194
it("supports nesting more than two deep", () => {

0 commit comments

Comments
 (0)