Skip to content

Commit

Permalink
Run format
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleAMathews committed Jul 20, 2017
1 parent e2dbd5a commit adedf93
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
8 changes: 5 additions & 3 deletions packages/gatsby-remark-images/src/__tests__/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,11 @@ const createNode = content => {
const createPluginOptions = (content, imagePaths = `/`) => {
const dirName = `not-a-real-dir`
return {
files: [].concat(imagePaths).map(imagePath => {return {
absolutePath: `${dirName}/${imagePath}`,
}}),
files: [].concat(imagePaths).map(imagePath => {
return {
absolutePath: `${dirName}/${imagePath}`,
}
}),
markdownNode: createNode(content),
markdownAST: remark.parse(content),
getNode: () => {
Expand Down
8 changes: 5 additions & 3 deletions packages/gatsby-remark-images/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,9 @@ module.exports = (
}
})
)
).then(markdownImageNodes =>
).then(markdownImageNodes =>
// HTML image node stuff
Promise.all(
Promise.all(
// Complex because HTML nodes can contain multiple images
rawHtmlNodes.map(
node =>
Expand Down Expand Up @@ -201,6 +201,8 @@ module.exports = (
return resolve(node)
})
)
).then(htmlImageNodes => markdownImageNodes.concat(htmlImageNodes).filter(node => !!node))
).then(htmlImageNodes =>
markdownImageNodes.concat(htmlImageNodes).filter(node => !!node)
)
)
}

0 comments on commit adedf93

Please sign in to comment.