mirror of
https://github.com/Luzifer/elb-instance-status.git
synced 2024-11-08 14:00:09 +00:00
remove not required var declaration
This commit is contained in:
parent
17e3b6b599
commit
2c1c0cdcdb
1 changed files with 2 additions and 5 deletions
7
main.go
7
main.go
|
@ -65,10 +65,7 @@ func init() {
|
||||||
}
|
}
|
||||||
|
|
||||||
func loadChecks() error {
|
func loadChecks() error {
|
||||||
var (
|
var rawChecks []byte
|
||||||
rawChecks []byte
|
|
||||||
err error
|
|
||||||
)
|
|
||||||
|
|
||||||
if _, err := os.Stat(cfg.CheckDefinitionsFile); err == nil {
|
if _, err := os.Stat(cfg.CheckDefinitionsFile); err == nil {
|
||||||
// We got a local file, read it
|
// We got a local file, read it
|
||||||
|
@ -95,7 +92,7 @@ func loadChecks() error {
|
||||||
}
|
}
|
||||||
|
|
||||||
tmpResult := map[string]checkCommand{}
|
tmpResult := map[string]checkCommand{}
|
||||||
err = yaml.Unmarshal(rawChecks, &tmpResult)
|
err := yaml.Unmarshal(rawChecks, &tmpResult)
|
||||||
|
|
||||||
if err == nil {
|
if err == nil {
|
||||||
checks = tmpResult
|
checks = tmpResult
|
||||||
|
|
Loading…
Reference in a new issue