Skip to content

Commit

Permalink
Fix minor style issues (bazelbuild#350)
Browse files Browse the repository at this point in the history
  • Loading branch information
fweikert authored Sep 2, 2022
1 parent 52f9ffc commit 42edfc0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions core/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -486,9 +486,9 @@ func runBazel(bazel string, args []string, out io.Writer) (int, error) {

// getIncompatibleFlags returns all incompatible flags for the current Bazel command in alphabetical order.
func getIncompatibleFlags(bazelPath, cmd string) ([]string, error) {
var incompatible_flags_str = GetEnvOrConfig("BAZELISK_INCOMPATIBLE_FLAGS")
if len(incompatible_flags_str) > 0 {
return strings.Split(incompatible_flags_str, ","), nil
var incompatibleFlagsStr = GetEnvOrConfig("BAZELISK_INCOMPATIBLE_FLAGS")
if len(incompatibleFlagsStr) > 0 {
return strings.Split(incompatibleFlagsStr, ","), nil
}

out := strings.Builder{}
Expand Down
4 changes: 2 additions & 2 deletions repositories/gcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ func (gcs *GCSRepo) DownloadRolling(version, destDir, destFile string) (string,
return "", err
}

release_version := strings.Split(version, "-")[0]
url := fmt.Sprintf("%s/%s/rolling/%s/%s", candidateBaseURL, release_version, version, srcFile)
releaseVersion := strings.Split(version, "-")[0]
url := fmt.Sprintf("%s/%s/rolling/%s/%s", candidateBaseURL, releaseVersion, version, srcFile)
return httputil.DownloadBinary(url, destDir, destFile)
}

0 comments on commit 42edfc0

Please sign in to comment.