Skip to content

Commit 2d39a99

Browse files
yarikopticeffigies
andauthored
Two suggestions from review to reflect changes in main and optimize TS
Co-authored-by: Chris Markiewicz <[email protected]>
1 parent b9cb09a commit 2d39a99

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/setup/loadSchema.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ export async function loadSchemaWithSource(version?: string): Promise<SchemaWith
5050

5151
/**
5252
* Load the schema from the specification
53-
*
54-
* version is ignored when the network cannot be accessed
5553
*/
5654
export async function loadSchema(version?: string): Promise<Schema> {
5755
const result = await loadSchemaWithSource(version)

src/summary/summary.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,7 @@ export class Summary {
167167
pet: this.pet,
168168
dataTypes: Array.from(this.dataTypes),
169169
schemaVersion: this.schemaVersion,
170-
}
171-
if (this.schemaSource) {
172-
output.schemaSource = this.schemaSource
170+
schemaSource: this.schemaSource,
173171
}
174172
return output
175173
}

0 commit comments

Comments
 (0)