Skip to content

Commit

Permalink
Always compress images (even if they are already compressed)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmwdotme committed Sep 18, 2021
1 parent fdc5dac commit 5181ae0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/instance.js
Original file line number Diff line number Diff line change
Expand Up @@ -825,9 +825,7 @@ class Instance extends EventEmitter {
let tmpfile = null;
const data = await util.promisify(fs.readFile)(filePath);

if (!isCompressed(data)) {
tmpfile = await compress(data, name);
}
tmpfile = await compress(data, name);

let uploadedImage = await this.uploadImage(
"kernel",
Expand Down

0 comments on commit 5181ae0

Please sign in to comment.