Skip to content

Commit a9c8eff

Browse files
yurylebBobby Sudekum
authored andcommitted
Replace ES5 lambda in Array.some() with Array.indexOf() (#159)
1 parent f0c02f8 commit a9c8eff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ module.exports = function(version, _options) {
144144
// the ref should be used instead of the name.
145145
var wayMotorway = false;
146146
if (options && options.classes) {
147-
wayMotorway = options.classes.some((className) => ['motorway'].indexOf(className) > -1);
147+
wayMotorway = options.classes.indexOf('motorway') !== -1;
148148
}
149149

150150
if (name && ref && name !== ref && !wayMotorway) {

0 commit comments

Comments
 (0)