Skip to content

Commit ccc8d23

Browse files
committed
Fixed library reference matcher
1 parent e625d65 commit ccc8d23

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

internal/arduino/sketch/profiles.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,10 +447,13 @@ func (l *ProfileLibraryReference) Match(other *ProfileLibraryReference) bool {
447447
if l.InstallDir != nil {
448448
return other.InstallDir != nil && l.InstallDir.EqualsTo(other.InstallDir)
449449
}
450+
if other.InstallDir != nil {
451+
return false
452+
}
450453
if l.GitURL != nil {
451454
return other.GitURL != nil && l.GitURL.String() == other.GitURL.String()
452455
}
453-
if other.InstallDir != nil {
456+
if other.GitURL != nil {
454457
return false
455458
}
456459
if l.Library != other.Library {

0 commit comments

Comments
 (0)