Skip to content

Commit

Permalink
Update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahatwork committed Nov 14, 2017
1 parent 05ed07d commit cb1bf35
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/gatsby-source-contentful/src/extend-node-type.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ const resolveResponsiveResolution = (image, options) => {
desiredAspectRatio = options.width / options.height
}

// If the user selected a height (so cropping) and options for focus
// and fit aren't set, we'll set our defaults
// If the user selected a height (so cropping) and fit option
// is not set, we'll set our defaults
if (options.height) {
if (!options.resizingBehavior) {
options.resizingBehavior = `fill`
Expand Down Expand Up @@ -294,8 +294,8 @@ const resolveResize = (image, options) =>

getBase64ImageAndBasicMeasurements(image, options).then(
({ contentType, base64Str, width, height, aspectRatio }) => {
// If the user selected a height (so cropping) and options for focus
// and fit aren't set, we'll set our defaults
// If the user selected a height (so cropping) and fit option
// is not set, we'll set our defaults
if (options.height) {
if (!options.resizingBehavior) {
options.resizingBehavior = `fill`
Expand Down

0 comments on commit cb1bf35

Please sign in to comment.