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 {
|
||||
var (
|
||||
rawChecks []byte
|
||||
err error
|
||||
)
|
||||
var rawChecks []byte
|
||||
|
||||
if _, err := os.Stat(cfg.CheckDefinitionsFile); err == nil {
|
||||
// We got a local file, read it
|
||||
|
@ -95,7 +92,7 @@ func loadChecks() error {
|
|||
}
|
||||
|
||||
tmpResult := map[string]checkCommand{}
|
||||
err = yaml.Unmarshal(rawChecks, &tmpResult)
|
||||
err := yaml.Unmarshal(rawChecks, &tmpResult)
|
||||
|
||||
if err == nil {
|
||||
checks = tmpResult
|
||||
|
|
Loading…
Reference in a new issue