Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
yann300 committed Mar 17, 2021
1 parent b3d8ab2 commit 36f0b44
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/remix-ide/src/app/files/fileProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ class FileProvider {
* @param {string} path is the folder to be copied over
* @param {Function} visitFile is a function called for each visited files
*/
_copyFolderToJsonInternal (path, visitFile) {
_copyFolderToJsonInternal (path, visitFile) {
visitFile = visitFile || (() => {})
return new Promise((resolve, reject) => {
const json = {}
Expand Down
4 changes: 2 additions & 2 deletions apps/remix-ide/src/app/files/workspaceFileProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ class WorkspaceFileProvider extends FileProvider {

async copyFolderToJson (directory, visitFile) {
visitFile = visitFile || (() => {})
const regex = new RegExp(`.workspaces/${this.workspace}/`, 'g');
const regex = new RegExp(`.workspaces/${this.workspace}/`, 'g')
let json = await super._copyFolderToJsonInternal(directory, ({ path, content }) => {
visitFile({ path: path.replace(regex, ''), content })
})
})
json = JSON.stringify(json).replace(regex, '')
return JSON.parse(json)
}
Expand Down

0 comments on commit 36f0b44

Please sign in to comment.