fix no-extra-boolean-cast eslint error

This commit is contained in:
folmert 2017-12-12 17:00:40 +01:00 committed by GitHub
parent 83b0798e32
commit 5645a0a5d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,7 +29,7 @@ const urlsFromAssets = assets => {
.forEach(key => {
let asset = assets[key];
if (typeof asset === 'string') {
if (Boolean(urls[getExtensionForFilename(asset)])) {
if (urls[getExtensionForFilename(asset)]) {
urls[getExtensionForFilename(asset)].push(asset);
}
} else {