Skip to content

Commit

Permalink
Revert "nogo: enable SA1024" (#6296)
Browse files Browse the repository at this point in the history
  • Loading branch information
iain-macdonald committed Apr 3, 2024
1 parent 8510346 commit 8621934
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ nogo(
"@com_github_nishanths_exhaustive//:exhaustive",
] + staticcheck_analyzers(ANALYZERS + [
"-SA1019",
"-SA1024",
"-SA1029",
"-SA9001",
"-ST1000",
Expand Down
2 changes: 1 addition & 1 deletion server/xcode/xcode_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func versionMap(urlRefs []C.CFURLRef) map[string]*xcodeVersion {
defaultDeveloperDir := xcodeSelectDeveloperDir()
versionMap := make(map[string]*xcodeVersion)
for _, urlRef := range urlRefs {
path := "/" + strings.TrimPrefix(stringFromCFString(C.CFURLGetString(C.CFURLRef(urlRef))), filePrefix)
path := "/" + strings.TrimLeft(stringFromCFString(C.CFURLGetString(C.CFURLRef(urlRef))), filePrefix)
xcodePlist, err := xcodePlistForPath(path + versionPlistPath)
if err != nil {
log.Warningf("Error reading plist for Xcode: %s", err.Error())
Expand Down

0 comments on commit 8621934

Please sign in to comment.