refactor: remove dead BasePlatformAdapter code
This commit is contained in:
1 parent
29fba1740f
commit
d998c33b0d
5 files changed
+5
-240
No files matched your search
@@ -24,6 +24,7 @@ import (
|
||||
"fmt"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"slices"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
@@ -211,12 +212,7 @@ func repositoryUsesURL(dir, want string) bool {
|
||||
if !ok {
|
||||
return false
|
||||
}
|
||||
for _, got := range remote.URLs {
|
||||
if got == want {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
return slices.Contains(remote.URLs, want)
|
||||
}
|
||||
|
||||
// refresh brings an already-prepared worktree back in line with the
|
||||
|
||||
Reference in new issue
Block a user