Skip to content

Commit

Permalink
quality(sonar): improve code readability
Browse files Browse the repository at this point in the history
  • Loading branch information
Guts committed Apr 29, 2024
1 parent e035230 commit af5072b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions qtribu/toolbelt/network_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,7 @@ def get_from_source(
)

req_reply = self.ntwk_requester.reply()
if (
not req_reply.rawHeader(b"Content-Type")
== response_expected_content_type
):
if req_reply.rawHeader(b"Content-Type") != response_expected_content_type:
raise TypeError(
f"Response mime-type is '{req_reply.rawHeader(b'Content-type')}' "
f"not '{response_expected_content_type}' as required.".format()
Expand Down

0 comments on commit af5072b

Please sign in to comment.