Skip to content

Commit 20d99f5

Browse files
author
Akos Kitta
committed
fix: prefer undefined fqbn over empty string
1 parent 4033ed6 commit 20d99f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arduino-ide-extension/src/node/boards-service-impl.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ export class BoardsServiceImpl
257257
const platform = board.getPlatform();
258258
if (platform) {
259259
const platformId = platform.getId();
260-
const fqbn = board.getFqbn();
260+
const fqbn = board.getFqbn() || undefined; // prefer undefined over empty string
261261
const parsedPlatformId = createPlatformIdentifier(platformId);
262262
if (!parsedPlatformId) {
263263
console.warn(

0 commit comments

Comments
 (0)