From 46447978a4be0eb901cdcb0f03f572dfc1d195ec Mon Sep 17 00:00:00 2001 From: SteelPhase Date: Fri, 17 Aug 2018 18:54:51 -0400 Subject: [PATCH] use new versionAtMost function --- service_upstart_linux.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/service_upstart_linux.go b/service_upstart_linux.go index 9ce441e..bccc8c8 100644 --- a/service_upstart_linux.go +++ b/service_upstart_linux.go @@ -73,7 +73,7 @@ func (s *upstart) hasKillStanza() bool { } maxVersion := []int{0, 6, 5} - if versionAtMost(version, maxVersion) { + if matches, err := versionAtMost(version, maxVersion); err != nil || matches { return false } @@ -88,7 +88,7 @@ func (s *upstart) hasSetUIDStanza() bool { } maxVersion := []int{1, 4, 0} - if versionAtMost(version, maxVersion) { + if matches, err := versionAtMost(version, maxVersion); err != nil || matches { return false }