as it's not possible that modes contains a whitespace

This commit is contained in:
jkhsjdhjs 2016-09-06 17:15:06 +02:00
parent 4327fd983b
commit f83fb0b89c

View File

@ -51,7 +51,6 @@ var processModes = modes => {
var prefix = '+', modeArr = [];
modes.split('').forEach(token => {
if(token === '-' || token === '+') {prefix = token; return;}
if(token === ' ') return;
modeArr.push(prefix + token);
});
return modeArr;