mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 09:47:13 +00:00
Remove unnecessary condition in write_text
This commit is contained in:
parent
ce152e9c94
commit
394c87c40b
@ -302,8 +302,7 @@ class RequestHandler(SimpleHTTPRequestHandler):
|
|||||||
|
|
||||||
self.end_headers()
|
self.end_headers()
|
||||||
|
|
||||||
if message is not None:
|
self.wfile.write(message.encode("UTF-8"))
|
||||||
self.wfile.write(message.encode("UTF-8"))
|
|
||||||
|
|
||||||
def write_file(self, path, cache_headers=True):
|
def write_file(self, path, cache_headers=True):
|
||||||
""" Returns a file to the user. """
|
""" Returns a file to the user. """
|
||||||
|
Loading…
x
Reference in New Issue
Block a user