Skip to content

Commit 6ef4b37

Browse files
committed
chore: linting
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
1 parent 481b537 commit 6ef4b37

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

packages/serialization/json/test/common/testEntity.ts

+18-18
Original file line numberDiff line numberDiff line change
@@ -146,14 +146,14 @@ export function deserializeBarParser(barResponse: BarResponse | undefined = {}):
146146

147147
export function serializeTestObject(writer: SerializationWriter, entity: { additionalData?: Record<string, unknown> } | undefined | null = {}): void {
148148
if (!entity) {
149-
return;
150-
}
151-
writer.writeAdditionalData(entity.additionalData);
149+
return;
150+
}
151+
writer.writeAdditionalData(entity.additionalData);
152152
}
153153
export function serializeTestParser(writer: SerializationWriter, entity: TestParser | undefined | null = {}): void {
154-
if (!entity) {
155-
return;
156-
}
154+
if (!entity) {
155+
return;
156+
}
157157
writer.writeStringValue("id", entity.id);
158158
writer.writeCollectionOfPrimitiveValues("testCollection", entity.testCollection);
159159
writer.writeStringValue("testString", entity.testString);
@@ -177,26 +177,26 @@ export function serializeTestParser(writer: SerializationWriter, entity: TestPar
177177
}
178178

179179
export function serializeFoo(writer: SerializationWriter, entity: FooResponse | undefined | null = {}): void {
180-
if (!entity) {
181-
return;
182-
}
180+
if (!entity) {
181+
return;
182+
}
183183
writer.writeStringValue("id", entity.id);
184184
writer.writeCollectionOfObjectValues("bars", entity.bars, serializeBar);
185185
}
186186

187187
export function serializeBar(writer: SerializationWriter, entity: BarResponse | undefined | null = {}): void {
188-
if (!entity) {
189-
return;
190-
}
188+
if (!entity) {
189+
return;
190+
}
191191
writer.writeStringValue("propA", entity.propA);
192192
writer.writeStringValue("propB", entity.propB);
193193
writer.writeDateValue("propC", entity.propC);
194194
}
195195

196196
export function serializeTestBackModel(writer: SerializationWriter, entity: TestBackedModel | undefined | null = {}): void {
197-
if (!entity) {
198-
return;
199-
}
197+
if (!entity) {
198+
return;
199+
}
200200
serializeTestParser(writer, entity);
201201
}
202202

@@ -214,9 +214,9 @@ export function deserializeIntoTestUnionObject(fooBar: Partial<TestUnionObject>
214214
}
215215

216216
export function serializeTestUnionObject(writer: SerializationWriter, fooBar: Partial<TestUnionObject> | undefined | null = {}): void {
217-
if (!fooBar) {
218-
return;
219-
}
217+
if (!fooBar) {
218+
return;
219+
}
220220
serializeFoo(writer, fooBar as FooResponse);
221221
serializeBar(writer, fooBar as BarResponse);
222222
}

0 commit comments

Comments
 (0)