use new versionAtMost function

This commit is contained in:
SteelPhase
2018-08-17 18:54:51 -04:00
committed by Daniel Theophanes
parent d1814f7d33
commit 46447978a4
+2 -2
View File
@@ -73,7 +73,7 @@ func (s *upstart) hasKillStanza() bool {
} }
maxVersion := []int{0, 6, 5} maxVersion := []int{0, 6, 5}
if versionAtMost(version, maxVersion) { if matches, err := versionAtMost(version, maxVersion); err != nil || matches {
return false return false
} }
@@ -88,7 +88,7 @@ func (s *upstart) hasSetUIDStanza() bool {
} }
maxVersion := []int{1, 4, 0} maxVersion := []int{1, 4, 0}
if versionAtMost(version, maxVersion) { if matches, err := versionAtMost(version, maxVersion); err != nil || matches {
return false return false
} }