Skip to content

Commit a0fea8c

Browse files
committed
fmt
1 parent f21ad82 commit a0fea8c

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

src/controller.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,13 @@ export class SQLNotebookController {
9090
return;
9191
}
9292

93-
writeSuccess(execution, result.map(item => [
94-
text(resultToMarkdownTable(item), "text/markdown"),
95-
json(item)
96-
]));
93+
writeSuccess(
94+
execution,
95+
result.map((item) => [
96+
text(resultToMarkdownTable(item), 'text/markdown'),
97+
json(item),
98+
])
99+
);
97100
}
98101
}
99102

@@ -111,10 +114,7 @@ function writeSuccess(
111114
outputs: vscode.NotebookCellOutputItem[][]
112115
) {
113116
execution.replaceOutput(
114-
outputs.map(
115-
(items) =>
116-
new vscode.NotebookCellOutput(items)
117-
)
117+
outputs.map((items) => new vscode.NotebookCellOutput(items))
118118
);
119119
execution.end(true, Date.now());
120120
}

src/driver.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ interface PostgresConfig extends BaseConfig {
220220
driver: 'postgres';
221221
}
222222

223-
const identity = <T> (input: T) => input;
223+
const identity = <T>(input: T) => input;
224224

225225
async function createPostgresPool({
226226
host,
@@ -250,8 +250,8 @@ async function createPostgresPool({
250250
default:
251251
return pg.types.getTypeParser(id, format);
252252
}
253-
}
254-
}
253+
},
254+
},
255255
});
256256
return postgresPool(pool);
257257
}

0 commit comments

Comments
 (0)