Skip to content

Commit

Permalink
Return the proper eval-result type (#511)
Browse files Browse the repository at this point in the history
  • Loading branch information
samdenty authored and CompuIves committed Feb 8, 2018
1 parent c24df87 commit 2f6e9a4
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,7 @@ class Console extends React.Component {
const parsedJson = result ? CircularJSON.parse(result) : result;

if (!error) {
if (parsedJson) {
this.addMessage('log', [parsedJson], 'return');
} else {
this.addMessage('log', [undefined], 'return');
}
this.addMessage('log', [parsedJson], 'return');
} else {
this.addMessage('error', [parsedJson]);
}
Expand Down

0 comments on commit 2f6e9a4

Please sign in to comment.