Skip to content
This repository was archived by the owner on Feb 5, 2026. It is now read-only.

Commit d53b6c5

Browse files
committed
run the linter
1 parent 6913244 commit d53b6c5

File tree

2 files changed

+18
-13
lines changed

2 files changed

+18
-13
lines changed

src/bigquery.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -598,8 +598,8 @@ export class BigQuery extends Service {
598598
selectedFields?: string[];
599599
parseJSON?: boolean;
600600
listParams?:
601-
| bigquery.tabledata.IListParams
602-
| bigquery.jobs.IGetQueryResultsParams;
601+
| bigquery.tabledata.IListParams
602+
| bigquery.jobs.IGetQueryResultsParams;
603603
},
604604
) {
605605
// deep copy schema fields to avoid mutation
@@ -2476,8 +2476,8 @@ function convertSchemaFieldValue(
24762476
selectedFields?: string[];
24772477
parseJSON?: boolean;
24782478
listParams?:
2479-
| bigquery.tabledata.IListParams
2480-
| bigquery.jobs.IGetQueryResultsParams;
2479+
| bigquery.tabledata.IListParams
2480+
| bigquery.jobs.IGetQueryResultsParams;
24812481
},
24822482
) {
24832483
if (value === null) {
@@ -2547,17 +2547,17 @@ function convertSchemaFieldValue(
25472547
*/
25482548
const listParams = options.listParams;
25492549
const timestampOutputFormat = listParams
2550-
? listParams['formatOptions.timestampOutputFormat']
2551-
: undefined;
2550+
? listParams['formatOptions.timestampOutputFormat']
2551+
: undefined;
25522552
const useInt64Timestamp = listParams
2553-
? listParams['formatOptions.useInt64Timestamp']
2554-
: undefined;
2553+
? listParams['formatOptions.useInt64Timestamp']
2554+
: undefined;
25552555
if (timestampOutputFormat === 'ISO8601_STRING') {
25562556
// value is ISO string, create BigQueryTimestamp wrapping the string
25572557
value = BigQuery.timestamp(value);
25582558
} else if (
2559-
useInt64Timestamp === false &&
2560-
timestampOutputFormat !== 'INT64'
2559+
useInt64Timestamp === false &&
2560+
timestampOutputFormat !== 'INT64'
25612561
) {
25622562
// value is float seconds, convert to BigQueryTimestamp
25632563
value = BigQuery.timestamp(Number(value));

src/table.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1880,17 +1880,22 @@ class Table extends ServiceObject {
18801880
listParams: qs,
18811881
});
18821882
} catch (err) {
1883-
18841883
callback!(err as Error | null, null, null, resp);
18851884
return;
18861885
}
18871886
callback!(null, rows, nextQuery, resp);
18881887
};
1889-
const defaultToInt64Timestamp = ['INT64', 'TIMESTAMP_OUTPUT_FORMAT_UNSPECIFIED'].includes(options['formatOptions.timestampOutputFormat'] as string);
1888+
const defaultToInt64Timestamp = [
1889+
'INT64',
1890+
'TIMESTAMP_OUTPUT_FORMAT_UNSPECIFIED',
1891+
].includes(options['formatOptions.timestampOutputFormat'] as string);
18901892
const qs = extend(
18911893
{
18921894
'formatOptions.useInt64Timestamp': defaultToInt64Timestamp,
1893-
'formatOptions.timestampOutputFormat': options['formatOptions.useInt64Timestamp'] === undefined ? 'ISO8601_STRING' : undefined,
1895+
'formatOptions.timestampOutputFormat':
1896+
options['formatOptions.useInt64Timestamp'] === undefined
1897+
? 'ISO8601_STRING'
1898+
: undefined,
18941899
},
18951900
options,
18961901
);

0 commit comments

Comments
 (0)