Skip to content

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy