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