Remove noop.

This commit is contained in:
John-David Dalton
2017-01-09 18:38:36 -08:00
parent 82e681a191
commit 395a81058b
7 changed files with 10 additions and 24 deletions

View File

@@ -1,5 +1,4 @@
import metaMap from './_metaMap.js';
import noop from './noop.js';
/**
* Gets metadata for `func`.
@@ -8,6 +7,8 @@ import noop from './noop.js';
* @param {Function} func The function to query.
* @returns {*} Returns the metadata for `func`.
*/
const getData = !metaMap ? noop : func => metaMap.get(func);
const getData = metaMap
? func => metaMap.get(func)
: () => {};
export default getData;