1
0
mirror of https://github.com/Luzifer/elb-instance-status.git synced 2024-09-16 13:48:34 +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