Skip to content

Commit 60be2f6

Browse files
RamSubbaraoGitHub Enterprise
authored andcommitted
remove unused variables (#806)
1 parent ef679e4 commit 60be2f6

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

cmd/runmqserver/post_init.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
© Copyright IBM Corporation 2018, 2023
2+
© Copyright IBM Corporation 2018, 2025
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.
@@ -49,7 +49,7 @@ func postInit(name, keyLabel string, p12Truststore tls.KeyStoreData) error {
4949
// Start the web server, in the background (if installed)
5050
// WARNING: No error handling or health checking available for the web server
5151
go func() {
52-
err = startWebServer(webKeystore, p12Truststore.Password, webTruststoreRef)
52+
err = startWebServer(webKeystore, webTruststoreRef)
5353
if err != nil {
5454
log.Printf("Error starting web server: %v", err)
5555
}

cmd/runmqserver/webserver.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
© Copyright IBM Corporation 2018, 2024
2+
© Copyright IBM Corporation 2018, 2025
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.
@@ -27,7 +27,7 @@ import (
2727
"github.com/ibm-messaging/mq-container/internal/tls"
2828
)
2929

30-
func startWebServer(webKeystore, webkeystorePW, webTruststoreRef string) error {
30+
func startWebServer(webKeystore, webTruststoreRef string) error {
3131
_, err := os.Stat("/opt/mqm/bin/strmqweb")
3232
if err != nil && os.IsNotExist(err) {
3333
log.Debug("Skipping web server, because it's not installed")
@@ -43,7 +43,6 @@ func startWebServer(webKeystore, webkeystorePW, webTruststoreRef string) error {
4343
// TLS enabled
4444
if webKeystore != "" {
4545
cmd.Env = append(cmd.Env, "AMQ_WEBKEYSTORE="+webKeystore)
46-
cmd.Env = append(cmd.Env, "AMQ_WEBKEYSTOREPW="+webkeystorePW)
4746
cmd.Env = append(cmd.Env, "AMQ_WEBTRUSTSTOREREF="+webTruststoreRef)
4847
}
4948
out, err := cmd.CombinedOutput()

0 commit comments

Comments
 (0)