fix(core): fixed esslint warning

This commit is contained in:
OldHawk
2017-10-25 15:55:35 +08:00
parent 1d7d4e0477
commit a45960993d
2 changed files with 4 additions and 4 deletions

View File

@@ -62,8 +62,8 @@
*/
vm.getMinMaxRelease = function () {
return {
min: vm.release.length>0 ? Math.min.apply(null, vm.release) : '',
max: vm.release.length>0 ? Math.max.apply(null, vm.release) : ''
min: vm.release.length > 0 ? Math.min.apply(null, vm.release) : '',
max: vm.release.length > 0 ? Math.max.apply(null, vm.release) : ''
};
};

View File

@@ -91,8 +91,8 @@
});
return {
min: re.length>0 ? Math.min.apply(null, re) : '',
max: re.length>0 ? Math.max.apply(null, re) : ''
min: re.length > 0 ? Math.min.apply(null, re) : '',
max: re.length > 0 ? Math.max.apply(null, re) : ''
};
};