diff --git a/stream/mts/psi/helpers.go b/stream/mts/psi/helpers.go index b04e9f76..15029e36 100644 --- a/stream/mts/psi/helpers.go +++ b/stream/mts/psi/helpers.go @@ -44,19 +44,13 @@ func TimeBytes(t uint64) []byte { // HasTime takes a psi as a byte slice and checks to see if it has a time descriptor // - if so return nil, otherwise return error func HasTime(p []byte) bool { - if p[TimeTagIndx] == TimeDescTag { - return true - } - return false + return p[TimeTagIndx] == TimeDescTag } // HasLocation takes a psi as a byte slice and checks to see if it has a location descriptor // - if so return nil, otherwise return error func HasLocation(p []byte) bool { - if p[LocationTagIndx] == LocationDescTag { - return true - } - return false + return p[LocationTagIndx] == LocationDescTag } // UpdateTime takes the byte slice representation of a psi-pmt as well as a time