Skip to content

Commit

Permalink
Implemented review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
taiypeo committed Nov 27, 2019
1 parent 014a01a commit e7927e0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/matchers/archive.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ func Warc(in []byte) bool {
return bytes.HasPrefix(in, []byte("WARC/"))
}

// Zstd matches a Zstandard archive file
// Zstd matches a Zstandard archive file.
func Zstd(in []byte) bool {
return (len(in) >= 4) &&
(((0x22 <= in[0]) && (in[0] <= 0x28)) || in[0] == 0x1E) && // Different Zstandard versions
return len(in) >= 4 &&
(0x22 <= in[0] && in[0] <= 0x28 || in[0] == 0x1E) && // Different Zstandard versions
bytes.HasPrefix(in[1:], []byte{0xB5, 0x2F, 0xFD})
}

0 comments on commit e7927e0

Please sign in to comment.