1
0
Fork 0
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:
Knut Ahlers 2016-07-22 14:45:18 +02:00
parent 17e3b6b599
commit 2c1c0cdcdb
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -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