Skip to content

Commit

Permalink
shorthand over arrow
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Apr 16, 2024
1 parent 801541f commit c921cac
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ exports.Registry = require('./lib/registry');
Object.defineProperty(exports, 'contentType', {
configurable: false,
enumerable: true,
get: () => exports.register.contentType,
set: value => {
get() {
return exports.register.contentType;
},
set(value) {
exports.register.setContentType(value);
},
});
Expand Down

0 comments on commit c921cac

Please sign in to comment.