Skip to content

Commit 71f37ac

Browse files
committed
Upgrade to lodash 4
1 parent ba83d98 commit 71f37ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/beautifier.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ module.exports = (openapi) => {
172172
});
173173
});
174174

175-
openapi.endpoints = _.unique(_.pluck(openapi.paths, 'endpointName'));
175+
openapi.endpoints = _.uniq(_.map(openapi.paths, 'endpointName'));
176176

177177
const commonPrefix = sharedStart(Object.keys(openapi.paths));
178178
const levels = commonPrefix.split('/').length - 1;

0 commit comments

Comments
 (0)