diff options
author | Federico Brigante <github@bfred.it> | 2018-04-19 18:03:13 +0700 |
---|---|---|
committer | Federico Brigante <github@bfred.it> | 2018-04-19 18:33:23 +0700 |
commit | faf121da05d41079c77e0f9f1aeac5bba6dfc886 (patch) | |
tree | e6fddd718bf362a0d6d91f2ea6b46042aa9ff1d6 | |
parent | de9a3f308f4b5921c77c446123172de877cf529f (diff) | |
download | async-faf121da05d41079c77e0f9f1aeac5bba6dfc886.tar.gz |
Drop trim
-rw-r--r-- | lib/autoInject.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/autoInject.js b/lib/autoInject.js index 0989284..ff635f9 100644 --- a/lib/autoInject.js +++ b/lib/autoInject.js @@ -1,6 +1,5 @@ import auto from './auto'; import arrayMap from 'lodash/_arrayMap'; -import trim from 'lodash/trim'; import forOwn from './internal/forOwn'; import wrapAsync from './internal/wrapAsync'; import { isAsync } from './internal/wrapAsync'; @@ -15,7 +14,7 @@ function parseParams(func) { func = func.match(FN_ARGS)[2].replace(' ', ''); func = func ? func.split(FN_ARG_SPLIT) : []; func = func.map(function (arg){ - return trim(arg.replace(FN_ARG, '')); + return arg.replace(FN_ARG, '').trim(); }); return func; } |