Skip to content

Commit d11b215

Browse files
committed
Apply Suggestion
1 parent c859aa3 commit d11b215

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

core/core.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -326,11 +326,7 @@ func getUserAgent(config config.Config) string {
326326
}
327327

328328
func getAuthHeader(config config.Config) string {
329-
auth_header := config.Get("BAZELISK_AUTH_HEADER")
330-
if len(auth_header) > 0 {
331-
return auth_header
332-
}
333-
return ""
329+
return config.Get("BAZELISK_AUTH_HEADER")
334330
}
335331

336332
// GetBazelVersion returns the Bazel version that should be used.

0 commit comments

Comments
 (0)