Skip to content

Commit

Permalink
fix early bail when testing if string field should link to File node (g…
Browse files Browse the repository at this point in the history
…atsbyjs#6504)

* fix early bail when for file inferring

* remove any `application/octet-stream` handling to be in line with mime@2 behaviour

* this can be shorter, doh!
  • Loading branch information
pieh authored and m-allanson committed Jul 18, 2018
1 parent 187d239 commit 9afec82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/create-file-node.js
Expand Up @@ -44,7 +44,7 @@ exports.createFileNode = async (
internal = {
contentDigest,
type: `File`,
mediaType: mediaType ? mediaType : `application/octet-stream`,
mediaType,
description: `File "${path.relative(process.cwd(), slashed)}"`,
}
}
Expand Down

0 comments on commit 9afec82

Please sign in to comment.