diff --git a/main.go b/main.go index 05fd6b5..1ac3c8c 100644 --- a/main.go +++ b/main.go @@ -11,12 +11,11 @@ import ( const LOGFILE = "/var/log/inizer.log" func ActUponAction() { - var operation bool action, err := inize.GetVendorData() if err != nil { log.Fatal(err) } - switch operation { + switch { case strings.Contains(action, "SetAnchor"): inize.AssignAnchorIP() fallthrough