From 0e23e005c1e36387252ceca90786afbc4d338215 Mon Sep 17 00:00:00 2001 From: Andrea Peruffo Date: Wed, 4 Oct 2023 12:39:20 +0100 Subject: [PATCH] more linting --- kiota_abstractions/request_information.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/kiota_abstractions/request_information.py b/kiota_abstractions/request_information.py index 1d369c2a..091c7006 100644 --- a/kiota_abstractions/request_information.py +++ b/kiota_abstractions/request_information.py @@ -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: