Skip to content

Commit

Permalink
more linting
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaTP committed Oct 4, 2023
1 parent 2f2fd26 commit 0e23e00
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions kiota_abstractions/request_information.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,8 @@ def try_add_request_header(self, key: str, value: str) -> bool:
lowercase_key = key.lower()
if lowercase_key in self.headers:
return False
else:
self.headers[lowercase_key] = {str(value)}
return True
self.headers[lowercase_key] = {str(value)}
return True
return False

def remove_request_headers(self, key: str) -> None:
Expand Down

0 comments on commit 0e23e00

Please sign in to comment.