Skip to content

Commit 0aa81ce

Browse files
committed
update reference
1 parent e20bac9 commit 0aa81ce

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/firestore/src/lite-api/reference.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ import {
3232
validateDocumentPath,
3333
validateNonEmptyArgument
3434
} from '../util/input_validation';
35-
import { AutoId } from '../util/misc';
3635
// API extractor fails importing property unless we also explicitly import Property.
3736
// eslint-disable-next-line @typescript-eslint/no-unused-vars, unused-imports/no-unused-imports-ts
3837
import { Property, property, validateJSON } from '../util/json_validation';
38+
import { AutoId } from '../util/misc';
3939

4040
import { Firestore } from './database';
4141
import { FieldPath } from './field_path';
@@ -305,7 +305,7 @@ export class DocumentReference<
305305
json: object,
306306
converter?: FirestoreDataConverter<NewAppModelType, NewDbModelType>
307307
): DocumentReference<NewAppModelType, NewDbModelType> {
308-
if(validateJSON(json, DocumentReference._jsonSchema)) {
308+
if (validateJSON(json, DocumentReference._jsonSchema)) {
309309
return new DocumentReference<NewAppModelType, NewDbModelType>(
310310
firestore,
311311
converter ? converter : null,
@@ -315,7 +315,7 @@ export class DocumentReference<
315315
throw new FirestoreError(
316316
Code.INTERNAL,
317317
'Unexpected error creating Bytes from JSON.'
318-
);
318+
);
319319
}
320320
}
321321

0 commit comments

Comments
 (0)