Skip to content

Commit

Permalink
Use then instead of finally
Browse files Browse the repository at this point in the history
  • Loading branch information
derekrushforth committed Jan 23, 2020
1 parent 1e075be commit da216d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/commands/templates/pull.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,8 @@ const saveTemplate = (outputDir: string, template: Template, client: any) => {
log('Error fetching suggested template model', { error: true })
log(error, { error: true })
})
.finally(() => {
.then(() => {
// Save the file regardless of success or error when fetching suggested model
outputFileSync(join(path, 'meta.json'), JSON.stringify(meta, null, 2))
})
}

0 comments on commit da216d1

Please sign in to comment.