diff --git a/.travis.yml b/.travis.yml index ce6cb2bc..881b94f4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,7 +14,6 @@ env: global: - IMPORTPATH=github.com/coreos/go-systemd - GOPATH=/opt - - GO15VENDOREXPERIMENT=1 - DEP_BINDIR=/tmp - BUILD_DIR=/opt/src/github.com/coreos/go-systemd matrix: diff --git a/unit/deserialize.go b/unit/deserialize.go index bf972805..c0c06bdf 100644 --- a/unit/deserialize.go +++ b/unit/deserialize.go @@ -88,7 +88,7 @@ func (l *lexer) lex() { l.errchan <- err return } - if bytes.IndexAny(line, SYSTEMD_NEWLINE) == -1 { + if !bytes.ContainsAny(line, SYSTEMD_NEWLINE) { l.errchan <- ErrLineTooLong return }