From 3dfd5ef5f921a480d5b6b1ddceb140cdd7d29ca1 Mon Sep 17 00:00:00 2001 From: ioedeveloper Date: Thu, 29 Apr 2021 16:35:08 +0100 Subject: [PATCH] Rename helper function to createNonClashingNameAsync --- apps/remix-ide/src/lib/helper.js | 2 +- libs/remix-ui/file-explorer/src/lib/file-explorer.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/remix-ide/src/lib/helper.js b/apps/remix-ide/src/lib/helper.js index cb78e55356..2d8bb19cfb 100644 --- a/apps/remix-ide/src/lib/helper.js +++ b/apps/remix-ide/src/lib/helper.js @@ -50,7 +50,7 @@ module.exports = { createNonClashingName (name, fileProvider, cb) { this.createNonClashingNameWithPrefix(name, fileProvider, '', cb) }, - async checkNonClashingNameAsync (name, fileManager, prefix = '') { + async createNonClashingNameAsync (name, fileManager, prefix = '') { if (!name) name = 'Undefined' let counter = '' let ext = 'sol' diff --git a/libs/remix-ui/file-explorer/src/lib/file-explorer.tsx b/libs/remix-ui/file-explorer/src/lib/file-explorer.tsx index f4b0020ca5..a2566c5848 100644 --- a/libs/remix-ui/file-explorer/src/lib/file-explorer.tsx +++ b/libs/remix-ui/file-explorer/src/lib/file-explorer.tsx @@ -234,7 +234,7 @@ export const FileExplorer = (props: FileExplorerProps) => { const fileManager = state.fileManager try { - const newName = await helper.checkNonClashingNameAsync(newFilePath, fileManager) + const newName = await helper.createNonClashingNameAsync(newFilePath, fileManager) const createFile = await fileManager.writeFile(newName, '') if (!createFile) {