Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklx authored Aug 1, 2023
1 parent e84cf05 commit 2107201
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/ember-svg-jar/addon/helpers/svg-jar.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
import { helper } from '@ember/component/helper';
import makeSVG from 'ember-svg-jar/utils/make-svg';
import { importSync } from '@embroider/macros';

function getInlineAsset(assetId) {
let result = null;
try {
result = require(`ember-svg-jar/inlined/${assetId}`).default;
} catch (err) {}
} catch (err) {
// skip
}
try {
result = importSync(`../inlined/${assetId}`).default;
} catch (err) {}
} catch (err) {
// skip
}
return result;
}

Expand Down

0 comments on commit 2107201

Please sign in to comment.