Skip to content

Commit

Permalink
fix: remote action reject termination. (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
shendriksen authored and kaliabadi committed Oct 15, 2018
1 parent c9335bf commit d1eeb35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/remoteActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ const fetchRemoteKeys = (config, key, imageName) =>
const params = { Bucket: config.remoteBucketName, Key: remoteFileName };

s3.getObject(params, (error, data) => {
if (error) reject(error);
if (error) return reject(error);
fs.writeFileSync(fileName, data.Body);
resolve();
});
Expand Down

0 comments on commit d1eeb35

Please sign in to comment.