Remove unused public method

This commit is contained in:
Horcrux
2017-01-16 14:38:43 +08:00
parent a981585b6b
commit 7c9f6b2d3d
11 changed files with 38 additions and 68 deletions

View File

@@ -1,6 +1,4 @@
import _ from 'lodash';
export default function (opacity) {
let value = +opacity;
return (_.isNil(opacity) || isNaN(value)) ? 1 : value;
const value = +opacity;
return (typeof value !== 'number' || isNaN(value)) ? 1 : value;
}