Skip to content
This repository has been archived by the owner on Feb 28, 2022. It is now read-only.

Commit

Permalink
placate xo
Browse files Browse the repository at this point in the history
  • Loading branch information
montyanderson committed Jul 12, 2019
1 parent c2ac169 commit a907ffa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/Cache.js
Expand Up @@ -79,12 +79,12 @@ module.exports = class Cache {
responseType: 'stream'
});

if(typeof response.headers['content-type'] !== 'string') {
throw new Error('No Content-Type header given');
if (typeof response.headers['content-type'] !== 'string') {
throw new TypeError('No Content-Type header given');
}

if(typeof response.headers['content-length'] !== 'string') {
throw new Error('No Content-Length header given');
if (typeof response.headers['content-length'] !== 'string') {
throw new TypeError('No Content-Length header given');
}

const meta = {
Expand Down

0 comments on commit a907ffa

Please sign in to comment.