Skip to content

Commit

Permalink
make lint happy
Browse files Browse the repository at this point in the history
  • Loading branch information
mnot committed Apr 17, 2023
1 parent 78727d0 commit f1e29c5
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions redbot/resource/active_check/range.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,8 @@ def done(self) -> None:

if self.response.status_code == "206":
c_e = "content-encoding"
if (
"gzip"
in self.base.response.parsed_headers.get(c_e, [])
== "gzip"
not in self.response.parsed_headers.get(c_e, [])
if ("gzip" in self.base.response.parsed_headers.get(c_e, [])) == (
"gzip" not in self.response.parsed_headers.get(c_e, [])
):
self.add_base_note(
"header-accept-ranges header-content-encoding", RANGE_NEG_MISMATCH
Expand Down

0 comments on commit f1e29c5

Please sign in to comment.