You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/04/13 19:39:29 UTC

[GitHub] [airflow] potiuk commented on a diff in pull request #22887: Bump pre-commit hook versions

potiuk commented on code in PR #22887:
URL: https://github.com/apache/airflow/pull/22887#discussion_r849830654


##########
airflow/providers/influxdb/hooks/influxdb.py:
##########
@@ -68,11 +68,9 @@ def get_uri(self, conn: Connection):
         based on SSL or other InfluxDB host requirements
 
         """
-        return '{scheme}://{host}:{port}'.format(
-            scheme='https' if conn.schema is None else f'{conn.schema}',
-            host=conn.host,
-            port='7687' if conn.port is None else f'{conn.port}',
-        )
+        conn_scheme = 'https' if conn.schema is None else f'{conn.schema}'
+        conn_port = '7687' if conn.port is None else f'{conn.port}'
+        return f"{conn_scheme}://{conn.host}:{conn_port}"

Review Comment:
   Nice :)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org