mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 21:25:13 +02:00
Remove unnecessary condition in write_text
This commit is contained in:
@@ -302,8 +302,7 @@ class RequestHandler(SimpleHTTPRequestHandler):
|
||||
|
||||
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):
|
||||
""" Returns a file to the user. """
|
||||
|
Reference in New Issue
Block a user