From 5830be4a1dc0f191039c64a3b9422df1f6e6a569 Mon Sep 17 00:00:00 2001 From: yann300 Date: Thu, 6 Jan 2022 10:54:11 +0100 Subject: [PATCH] linting --- libs/remix-ui/workspace/src/lib/actions/workspace.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/libs/remix-ui/workspace/src/lib/actions/workspace.ts b/libs/remix-ui/workspace/src/lib/actions/workspace.ts index 957f7ee004..cc68af7efd 100644 --- a/libs/remix-ui/workspace/src/lib/actions/workspace.ts +++ b/libs/remix-ui/workspace/src/lib/actions/workspace.ts @@ -117,11 +117,8 @@ export const loadWorkspacePreset = async (template: 'gist-template' | 'code-temp obj['/' + 'gist-' + gistId + '/' + path] = data.files[element] }) plugin.fileManager.setBatchFiles(obj, 'workspace', true, (errorLoadingFile) => { - if (!errorLoadingFile) { - const provider = plugin.fileManager.getProvider('workspace') - - } else { - dispatch(displayNotification('', errorLoadingFile.message || errorLoadingFile, 'OK', null, () => {}, null)) + if (errorLoadingFile) { + dispatch(displayNotification('', errorLoadingFile.message || errorLoadingFile, 'OK', null, () => {}, null)) } }) } catch (e) {