]> git.ipfire.org Git - thirdparty/starlette.git/commitdiff
Removed if block 552/head
authorDidip Kerabat <didipk@gmail.com>
Mon, 17 Jun 2019 15:27:32 +0000 (08:27 -0700)
committerDidip Kerabat <didipk@gmail.com>
Mon, 17 Jun 2019 15:27:32 +0000 (08:27 -0700)
starlette/requests.py

index b1e0610cf37ff33daa36c6985649e4d5efded56a..c17a60809b2923dba97b7b880535da1489c619b5 100644 (file)
@@ -34,8 +34,7 @@ class State(object):
             )
 
     def __delattr__(self, key: typing.Any) -> None:
-        if hasattr(self, "_state"):
-            del self._state[key]
+        del self._state[key]
 
 
 class HTTPConnection(Mapping):