Skip to content

Commit

Permalink
Merge pull request #263 from muesli/unit-bytes-contains
Browse files Browse the repository at this point in the history
unit: use ContainsAny instead of IndexAny
  • Loading branch information
Luca Bruno authored Oct 31, 2018
2 parents f3b2571 + 7827196 commit 9002847
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion unit/deserialize.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 9002847

Please sign in to comment.