Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e759610

Browse files
author
Akos Kitta
committed
fix: simplify skipShowErrorMessageOnOpen condition
Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
1 parent f6eef5f commit e759610

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

‎arduino-ide-extension/src/browser/contributions/new-cloud-sketch.ts‎

Lines changed: 1 addition & 3 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /