Skip to content
This repository was archived by the owner on Nov 24, 2021. It is now read-only.

Commit a6c1505

Browse files
committed
Fix lint
1 parent 2fc87b7 commit a6c1505

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

packages/model-runner/src/docker.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ export async function pullImage(
4343
logger.info('Docker pull complete')
4444
resolve(message)
4545
})
46-
stream.on('error', err => {
46+
stream.on('error', streamErr => {
4747
logger.warn('Docker pull failed')
48-
logger.error(err)
49-
reject(err)
48+
logger.error(streamErr)
49+
reject(streamErr)
5050
})
5151
}
5252
)

packages/model-runner/src/schema.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ export function enforceRunnerInputSchema(input: RequestInput) {
2626

2727
export function enforceOutputSchema(outputFilePath: string) {
2828
const outputData = fs.readFileSync(outputFilePath, 'utf8')
29-
const output = JSON.parse(outputData) as output.ModelOutput
29+
const outputObj = JSON.parse(outputData) as output.ModelOutput
3030

31-
if (!validateOutputSchema(output)) {
31+
if (!validateOutputSchema(outputObj)) {
3232
throw new Error(
3333
`Invalid model output JSON. Details: ${JSON.stringify(
3434
validateOutputSchema.errors

0 commit comments

Comments
 (0)