Skip to content

Commit 0b2ec88

Browse files
committed
Remove unused attribute in Config struct
1 parent 44b343f commit 0b2ec88

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

cmd/config.go

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,16 @@ import (
1616
)
1717

1818
type Config struct {
19-
BasicAuth string // Currently unused in CLI
20-
Bearer string // Currently unused in CLI
21-
Hostname string `env:"CHECK_ELASTICSEARCH_HOSTNAME"`
22-
CAFile string `env:"CHECK_ELASTICSEARCH_CA_FILE"`
23-
CertFile string `env:"CHECK_ELASTICSEARCH_CERT_FILE"`
24-
KeyFile string `env:"CHECK_ELASTICSEARCH_KEY_FILE"`
25-
Username string `env:"CHECK_ELASTICSEARCH_USERNAME"`
26-
Password string `env:"CHECK_ELASTICSEARCH_PASSWORD"`
27-
Port int
28-
TLS bool
29-
Insecure bool
19+
Bearer string // Currently unused in CLI
20+
Hostname string `env:"CHECK_ELASTICSEARCH_HOSTNAME"`
21+
CAFile string `env:"CHECK_ELASTICSEARCH_CA_FILE"`
22+
CertFile string `env:"CHECK_ELASTICSEARCH_CERT_FILE"`
23+
KeyFile string `env:"CHECK_ELASTICSEARCH_KEY_FILE"`
24+
Username string `env:"CHECK_ELASTICSEARCH_USERNAME"`
25+
Password string `env:"CHECK_ELASTICSEARCH_PASSWORD"`
26+
Port int
27+
TLS bool
28+
Insecure bool
3029
}
3130

3231
// LoadFromEnv can be used to load struct values from 'env' tags.

0 commit comments

Comments
 (0)