Skip to content

Commit

Permalink
IDE: NIT: fixed comments
Browse files Browse the repository at this point in the history
  • Loading branch information
giuliomoro committed Apr 17, 2022
1 parent e65f7eb commit c6793eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions IDE/frontend-dev/src/Views/EditorView.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,7 @@ class EditorView extends View {
this.projectModel.setKey('readOnly', true);
if (!opts.fileType) opts.fileType = '0';

if (null === data || null === opts.fileName) { // file was deleted
// print a warning in the pd div. This is so that we don't need
// special handling of yet another div
if (null === data || null === opts.fileName) { // file was deleted, print a warning
$('[data-editor-msg]').html(json.editor_view.deleted.error);
$('[data-editor-msg-parent]').addClass('active');
} else if (opts.fileType.indexOf('image') !== -1){
Expand Down Expand Up @@ -245,7 +243,7 @@ class EditorView extends View {
this.emit('compare-files', true);

} else if ('binary' === opts.fileType) {
// print a warning in the pd div like above
// print a warning
$('[data-editor-msg]').html(json.editor_view.binary.error);
$('[data-editor-msg-parent]').addClass('active');
} else {
Expand Down
6 changes: 2 additions & 4 deletions IDE/public/js/bundle.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c6793eb

Please sign in to comment.