Made spacing style consistent.
This commit is contained in:
parent
6bd0af2a06
commit
648da22b50
14
server.js
14
server.js
|
@ -1640,13 +1640,13 @@ cache(function(data, match, sendBadge, request) {
|
|||
}
|
||||
}
|
||||
['2', '3'].forEach(function(version) {
|
||||
if (versions.some(function(element, index, array) { return new RegExp('^' + version + '\\.\\d$').exec(element); })) {
|
||||
versions.forEach(function(element, index, array) {
|
||||
if (element === version) {
|
||||
array.splice(index, 1);
|
||||
}
|
||||
});
|
||||
}
|
||||
if (versions.some(function(element, index, array) { return new RegExp('^' + version + '\\.\\d$').exec(element); })) {
|
||||
versions.forEach(function(element, index, array) {
|
||||
if (element === version) {
|
||||
array.splice(index, 1);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
if (!versions.length) {
|
||||
versions.push('not found');
|
||||
|
|
Loading…
Reference in New Issue
Block a user