Skip to content

Commit

Permalink
updating function doc: returns undefined, not null
Browse files Browse the repository at this point in the history
  • Loading branch information
ehrencrona committed Jun 30, 2020
1 parent ed25dd1 commit c673384
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gatsby-image/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const matchesMedia = ({ media }) =>
* Find the source of an image to use as a key in the image cache.
* Use `the first image in either `fixed` or `fluid`
* @param {{fluid: {src: string, media?: string}[], fixed: {src: string, media?: string}[]}} args
* @return {string} or null if not cacheable
* @return {string} or undefined if not cacheable
*/
const getImageCacheKey = ({ fluid, fixed }) => {
const srcData = getCurrentSrcData(fluid || fixed || [])
Expand Down

0 comments on commit c673384

Please sign in to comment.