Commit 8631f339 authored by Abiola Ibrahim's avatar Abiola Ibrahim

remove minor ugly parenthesis

parent ab5087e2
...@@ -16,7 +16,7 @@ type LengthFilter int64 ...@@ -16,7 +16,7 @@ type LengthFilter int64
// ShouldCompress returns if content length is greater than or // ShouldCompress returns if content length is greater than or
// equals to minimum length. // equals to minimum length.
func (l LengthFilter) ShouldCompress(w http.ResponseWriter) bool { func (l LengthFilter) ShouldCompress(w http.ResponseWriter) bool {
contentLength := (w.Header().Get("Content-Length")) contentLength := w.Header().Get("Content-Length")
length, err := strconv.ParseInt(contentLength, 10, 64) length, err := strconv.ParseInt(contentLength, 10, 64)
if err != nil || length == 0 { if err != nil || length == 0 {
return false return false
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment