Skip to content

Commit 8a65b58

Browse files
Remove environment variable fallback for API key
Co-Authored-By: vkorolik@launchdarkly.com <vkorolik@gmail.com>
1 parent 51c475a commit 8a65b58

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

cmd/sourcemaps/upload.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,7 @@ func runE(client resources.Client) func(cmd *cobra.Command, args []string) error
8282
backendUrl := viper.GetString(backendUrlFlag)
8383

8484
if apiKey == "" {
85-
apiKey = os.Getenv("HIGHLIGHT_SOURCEMAP_UPLOAD_API_KEY")
86-
if apiKey == "" {
87-
return fmt.Errorf("api key cannot be empty")
88-
}
85+
return fmt.Errorf("api key cannot be empty")
8986
}
9087

9188
if backendUrl == "" {

0 commit comments

Comments
 (0)