Skip to content

Commit e759610

Browse files
author
Akos Kitta
committed
fix: simplify skipShowErrorMessageOnOpen condition
Signed-off-by: Akos Kitta <[email protected]>
1 parent f6eef5f commit e759610

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Diff for: arduino-ide-extension/src/browser/contributions/new-cloud-sketch.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,7 @@ export class NewCloudSketch extends CloudSketchContribution {
6868
registry.registerCommand(NewCloudSketch.Commands.NEW_CLOUD_SKETCH, {
6969
execute: (params: NewCloudSketchParams) =>
7070
this.createNewSketch(
71-
typeof params?.skipShowErrorMessageOnOpen === 'boolean'
72-
? params.skipShowErrorMessageOnOpen
73-
: true,
71+
params?.skipShowErrorMessageOnOpen === false ? false : true,
7472
params?.initialValue,
7573
params?.callback
7674
),

0 commit comments

Comments
 (0)