diff options
Diffstat (limited to 'src/data/composite/things')
-rw-r--r-- | src/data/composite/things/track/withMainReleaseTrack.js | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/data/composite/things/track/withMainReleaseTrack.js b/src/data/composite/things/track/withMainReleaseTrack.js index fa678161..871eba7d 100644 --- a/src/data/composite/things/track/withMainReleaseTrack.js +++ b/src/data/composite/things/track/withMainReleaseTrack.js @@ -5,6 +5,7 @@ // is specified by reference and that reference doesn't resolve to anything. import {input, templateCompositeFrom} from '#composite'; +import {onlyItem} from '#sugar'; import {getKebabCase} from '#wiki-data'; import {exitWithoutDependency, withResultOfAvailabilityCheck} @@ -19,14 +20,6 @@ import { import withMainRelease from './withMainRelease.js'; -function onlyItem(array) { - if (array.length === 1) { - return array[0]; - } else { - return null; - } -} - export default templateCompositeFrom({ annotation: `withMainReleaseTrack`, |