Skip to content

Commit 04c4837

Browse files
Prettier
1 parent a58846c commit 04c4837

File tree

3 files changed

+8
-11
lines changed

3 files changed

+8
-11
lines changed

packages/firestore/src/core/query.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -526,9 +526,7 @@ export class FieldFilter extends Filter {
526526
'Comparing on key with IN, but filter value not an ArrayValue'
527527
);
528528
assert(
529-
(value.arrayValue.values || []).every(elem =>
530-
isReferenceValue(elem)
531-
),
529+
(value.arrayValue.values || []).every(elem => isReferenceValue(elem)),
532530
'Comparing on key with IN, but an array value was not a RefValue'
533531
);
534532
return new KeyFieldInFilter(field, value);

packages/firestore/src/model/values.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,8 @@ import { assert, fail } from '../util/assert';
2222
import { forEach, keys, size } from '../util/obj';
2323
import { ByteString } from '../util/byte_string';
2424
import { DocumentKey } from './document_key';
25-
import {
26-
primitiveComparator
27-
} from '../util/misc';
28-
import {isNegativeZero} from "../util/types";
25+
import { primitiveComparator } from '../util/misc';
26+
import { isNegativeZero } from '../util/types';
2927

3028
// A RegExp matching ISO 8601 UTC timestamps with optional fraction.
3129
const ISO_TIMESTAMP_REG_EXP = new RegExp(
@@ -231,7 +229,7 @@ function compareNumbers(left: api.Value, right: api.Value): number {
231229
'doubleValue' in right
232230
? normalizeNumber(right.doubleValue)
233231
: normalizeNumber(right.integerValue);
234-
232+
235233
if (leftNumber < rightNumber) {
236234
return -1;
237235
} else if (leftNumber > rightNumber) {
@@ -601,4 +599,4 @@ export function isMapValue(
601599
value?: api.Value | null
602600
): value is { mapValue: api.MapValue } {
603601
return !!value && 'mapValue' in value;
604-
}
602+
}

packages/firestore/test/unit/model/values.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,10 @@ import {
3636
expectCorrectComparisonGroups,
3737
expectEqualitySets,
3838
key,
39-
ref, wrap
39+
ref,
40+
wrap
4041
} from '../../util/helpers';
41-
import {serverTimestamp} from "../../../src/model/server_timestamps";
42+
import { serverTimestamp } from '../../../src/model/server_timestamps';
4243

4344
describe('Values', () => {
4445
const date1 = new Date(2016, 4, 2, 1, 5);

0 commit comments

Comments
 (0)