Skip to content

Commit

Permalink
Fix operator precedence.
Browse files Browse the repository at this point in the history
  • Loading branch information
ian-r-rose committed Aug 21, 2018
1 parent d7ea5bb commit 6df119b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/notebook-extension/src/index.ts
Expand Up @@ -503,9 +503,8 @@ function activateNotebookHandler(
args['isLauncher'] || args['isPalette'] ? '' : 'jp-NotebookIcon',
execute: args => {
const cwd =
args['cwd'] || browserFactory
? browserFactory.defaultBrowser.model.path
: '';
args['cwd'] ||
(browserFactory ? browserFactory.defaultBrowser.model.path : '');
const kernelName = (args['kernelName'] as string) || '';
return createNew(cwd, kernelName);
}
Expand Down

0 comments on commit 6df119b

Please sign in to comment.