Skip to content

Commit

Permalink
Fix/turn off no else return (#441)
Browse files Browse the repository at this point in the history
* turned of no-else-return linter rule
  • Loading branch information
strausr authored Aug 16, 2020
1 parent a4cf67b commit b7072bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ module.exports = {
"no-confusing-arrow": "off",
"no-console": "off",
"no-dupe-keys": "error",
"no-else-return": "error",
"no-else-return": "off",
"no-empty": "error",
"no-empty-function": "error",
"no-lonely-if": "off",
Expand Down
4 changes: 2 additions & 2 deletions test/integration/api/admin/structured_metadata_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -433,9 +433,9 @@ describe("structured metadata api", function () {
};

api.add_metadata_field(metadata, (res, res2) => {
cloudinary.v2.uploader.update_metadata({[EXTERNAL_ID_SET_4]: [1]}, ['sample'], (err, res) => {
cloudinary.v2.uploader.update_metadata({[EXTERNAL_ID_SET_4]: [1]}, ['sample'], (err, result) => {
expect(typeof err).to.be('undefined');
expect(res.public_ids[0]).to.equal('sample');
expect(result.public_ids[0]).to.equal('sample');
done();
})
});
Expand Down

0 comments on commit b7072bc

Please sign in to comment.