Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Alexandru Radovici <[email protected]>
  • Loading branch information
hateofhades and alexandruradovici authored Apr 18, 2021
1 parent cc40bed commit ad9ab36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/plugins/projects/projects/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1202,10 +1202,10 @@ let projects = {
let project = studio.settings.loadValue('projects', 'currentProject', null);
let file = studio.settings.loadValue('projects', 'currentFile', null);

if (project !== {} && project !== null) {
if (project !== null) {
if(await studio.filesystem.pathExists(project.folder)) {
if(await this.selectCurrentProject(project, false)) {
if (file !== {} && file !== null) {
if (file !== null) {
await this.changeFile(project,file);
}
}
Expand Down

0 comments on commit ad9ab36

Please sign in to comment.