Skip to content

Commit b7072bc

Browse files
authored
Fix/turn off no else return (#441)
* turned of no-else-return linter rule
1 parent a4cf67b commit b7072bc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.eslintrc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ module.exports = {
4545
"no-confusing-arrow": "off",
4646
"no-console": "off",
4747
"no-dupe-keys": "error",
48-
"no-else-return": "error",
48+
"no-else-return": "off",
4949
"no-empty": "error",
5050
"no-empty-function": "error",
5151
"no-lonely-if": "off",

test/integration/api/admin/structured_metadata_spec.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -433,9 +433,9 @@ describe("structured metadata api", function () {
433433
};
434434

435435
api.add_metadata_field(metadata, (res, res2) => {
436-
cloudinary.v2.uploader.update_metadata({[EXTERNAL_ID_SET_4]: [1]}, ['sample'], (err, res) => {
436+
cloudinary.v2.uploader.update_metadata({[EXTERNAL_ID_SET_4]: [1]}, ['sample'], (err, result) => {
437437
expect(typeof err).to.be('undefined');
438-
expect(res.public_ids[0]).to.equal('sample');
438+
expect(result.public_ids[0]).to.equal('sample');
439439
done();
440440
})
441441
});

0 commit comments

Comments
 (0)