Skip to content

Commit c4da6f2

Browse files
author
Akos Kitta
committed
no message check.
Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
1 parent 855dcd1 commit c4da6f2

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -584,11 +584,7 @@ interface SketchWithDetails extends Sketch {
584584
}
585585

586586
function isNotFoundError(err: unknown): err is ServiceError {
587-
return (
588-
ServiceError.is(err) &&
589-
err.code === 5 &&
590-
err.message.toLocaleLowerCase('en-US').includes('not_found')
591-
);
587+
return ServiceError.is(err) && err.code === 5; // `NOT_FOUND` https://grpc.github.io/grpc/core/md_doc_statuscodes.html
592588
}
593589

594590
/**

0 commit comments

Comments
 (0)