mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-16 10:46:14 +01:00
chore: eslint prefer-template
This commit is contained in:
committed by
Julian Lam
parent
4ee0f1459d
commit
707b55b6a5
@@ -67,9 +67,9 @@ image.normalise = async function (path) {
|
||||
});
|
||||
} else {
|
||||
const sharp = requireSharp();
|
||||
await sharp(path, { failOnError: true }).png().toFile(path + '.png');
|
||||
await sharp(path, { failOnError: true }).png().toFile(`${path}.png`);
|
||||
}
|
||||
return path + '.png';
|
||||
return `${path}.png`;
|
||||
};
|
||||
|
||||
image.size = async function (path) {
|
||||
|
||||
Reference in New Issue
Block a user