Skip to content

Commit cf1c1bb

Browse files
committed
style(sea): apply prettier formatting to SeaOperationBackend + connectionOptions test
Fixes the failing lint job (prettier --check) on the two files it flagged. Signed-off-by: Madhavendra Rathore <madhavendra.rathore@databricks.com>
1 parent c3a706e commit cf1c1bb

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

lib/sea/SeaOperationBackend.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -667,9 +667,7 @@ export default class SeaOperationBackend implements IOperationBackend {
667667
// status fields (numModifiedRows etc.) read off the now-terminal Statement.
668668
if (options?.callback) {
669669
const richFields = await this.readRichStatusFields();
670-
await Promise.resolve(
671-
options.callback({ state: OperationState.Succeeded, hasResultSet: true, ...richFields }),
672-
);
670+
await Promise.resolve(options.callback({ state: OperationState.Succeeded, hasResultSet: true, ...richFields }));
673671
}
674672
}
675673

tests/unit/sea/connectionOptions.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const PAT = { host: 'h.databricks.com', path: '/sql/1.0/warehouses/abc', token:
2626

2727
// Cast helper: the SEA connection-tuning/TLS options live on the internal
2828
// surface, so tests build untyped option literals.
29-
const opts = (extra: Record<string, unknown>) => ({ ...PAT, ...extra }) as unknown as ConnectionOptions;
29+
const opts = (extra: Record<string, unknown>) => ({ ...PAT, ...extra } as unknown as ConnectionOptions);
3030

3131
describe('SeaAuth connection options — intervalsAsString default', () => {
3232
it('always sets intervalsAsString:true (thrift-compatible interval rendering)', () => {

0 commit comments

Comments
 (0)