Skip to content
This repository has been archived by the owner on Mar 17, 2021. It is now read-only.

Commit

Permalink
fix: use typeof for comparing with undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
EslamHiko committed Apr 7, 2020
1 parent 21f8bf1 commit f287bfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Expand Up @@ -38,7 +38,7 @@ export default function loader(src) {
const mimetype = options.mimetype || mime.contentType(path.extname(file));

const encoding =
options.encoding === true || options.encoding === undefined
options.encoding === true || typeof options.encoding === 'undefined'
? 'base64'
: options.encoding;

Expand Down

0 comments on commit f287bfd

Please sign in to comment.