Skip to content

Commit

Permalink
typo in var, minor fixes, Fixes addyosmani#514
Browse files Browse the repository at this point in the history
  • Loading branch information
josenobile authored Jan 4, 2022
1 parent 04c0289 commit ff04432
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -864,7 +864,7 @@ async function getCss(document, options = {}) {
const {css} = options;
let stylesheets = [];

if ((!Array.isArray(css) && css) || (Array.isArray(css) && a.length !== 0)) {
if ((!Array.isArray(css) && css) || (Array.isArray(css) && css.length > 0)) {
const files = await glob(css, options);
stylesheets = await mapAsync(files, (file) => getStylesheet(document, file, options));
debug('(getCss) css option set', files, stylesheets);
Expand Down

0 comments on commit ff04432

Please sign in to comment.