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

Commit

Permalink
Fix undefined variable on ROM deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
DjLeChuck committed Oct 30, 2016
1 parent 95f8a2e commit ecfc0c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/roms.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ module.exports= {
var romPath = path.join(this.request.fields.current_path, this.request.fields.rom);

try {
fs.unlinkSync(filePath);
fs.unlinkSync(romPath);

this.body = 'OK';
} catch (error) {
Expand Down

0 comments on commit ecfc0c3

Please sign in to comment.