diff --git a/apps/remix-ide/src/app/files/fileManager.js b/apps/remix-ide/src/app/files/fileManager.js index ac9191b1b5..a378c46cb6 100644 --- a/apps/remix-ide/src/app/files/fileManager.js +++ b/apps/remix-ide/src/app/files/fileManager.js @@ -599,8 +599,7 @@ class FileManager extends Plugin { this.events.emit('noFileSelected') } else { this.saveCurrentFile() - let resolved - resolved = this.getPathFromUrl(file) + const resolved = this.getPathFromUrl(file) file = resolved.file const provider = resolved.provider this._deps.config.set('currentFile', file)