0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Removed unused variable

This commit is contained in:
Daniel Lockyer 2023-10-06 13:33:36 +02:00 committed by Daniel Lockyer
parent 07e603a5cd
commit 7a7d64b764

View file

@ -8,7 +8,6 @@ const path = require('path');
const adminXSettingsPath = '../../apps/admin-x-settings/dist';
function generateHash(filePath) {
const fileName = path.basename(filePath);
const fileContents = fs.readFileSync(filePath, 'utf8');
const hash = crypto.createHash('sha256').update(fileContents).digest('hex').slice(0, 10);
return hash;