Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
cd71a4b1
Commit
cd71a4b1
authored
Aug 25, 2021
by
yann300
Committed by
Aniket
Aug 26, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove uneeded try/catch
parent
f98da27f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
19 deletions
+7
-19
fileManager.js
apps/remix-ide/src/app/files/fileManager.js
+7
-19
No files found.
apps/remix-ide/src/app/files/fileManager.js
View file @
cd71a4b1
...
...
@@ -168,19 +168,11 @@ class FileManager extends Plugin {
* @returns {void}
*/
async
open
(
path
)
{
try
{
path
=
this
.
limitPluginScope
(
path
)
try
{
path
=
this
.
getPathFromUrl
(
path
).
file
}
catch
(
e
)
{
throw
e
}
await
this
.
_handleExists
(
path
,
`Cannot open file
${
path
}
`
)
await
this
.
_handleIsFile
(
path
,
`Cannot open file
${
path
}
`
)
await
this
.
openFile
(
path
)
}
catch
(
e
)
{
throw
e
}
path
=
this
.
limitPluginScope
(
path
)
path
=
this
.
getPathFromUrl
(
path
).
file
await
this
.
_handleExists
(
path
,
`Cannot open file
${
path
}
`
)
await
this
.
_handleIsFile
(
path
,
`Cannot open file
${
path
}
`
)
await
this
.
openFile
(
path
)
}
/**
...
...
@@ -608,12 +600,8 @@ class FileManager extends Plugin {
}
else
{
this
.
saveCurrentFile
()
let
resolved
try
{
resolved
=
this
.
getPathFromUrl
(
file
)
file
=
resolved
.
file
}
catch
(
e
)
{
throw
e
}
resolved
=
this
.
getPathFromUrl
(
file
)
file
=
resolved
.
file
const
provider
=
resolved
.
provider
this
.
_deps
.
config
.
set
(
'currentFile'
,
file
)
this
.
openedFiles
[
file
]
=
file
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment