Skip to content

Commit 758382f

Browse files
committed
Use concise arrow function syntax
1 parent d09d50d commit 758382f

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

lib/redis.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,17 +88,13 @@ module.exports = CoreObject.extend({
8888
if (revisions.length === 0) {
8989
return;
9090
}
91-
let dataKeys = revisions.map(function(revision) {
92-
return `${keyPrefix}:revision-data:${revision}`;
93-
});
91+
let dataKeys = revisions.map((rev) => `${keyPrefix}:revision-data:${rev}`);
9492

9593
let data = this._client.mget(dataKeys);
9694
if (!data) {
9795
return;
9896
}
99-
return data.map(function(d) {
100-
return JSON.parse(d);
101-
});
97+
return data.map((d) => JSON.parse(d));
10298
},
10399

104100
_listRevisions(keyPrefix) {

0 commit comments

Comments
 (0)