Skip to content

Commit

Permalink
fix: clarify
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Nov 26, 2018
1 parent 585c128 commit e19392f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ export default class UpdateCommand extends Command {
}))
let {body} = await http.get<IManifest | string>(url)

// Some non-S3 hosts do not automatically use the right content
// type, so we could get a raw JSON string here
// in case the content-type is not set, parse as a string
// this will happen if uploading without `oclif-dev publish`
if (typeof body === 'string') {
return JSON.parse(body)
} else {
Expand Down

0 comments on commit e19392f

Please sign in to comment.