XD-DENG commented on a change in pull request #12764:
URL: https://github.com/apache/airflow/pull/12764#discussion_r534522391



##########
File path: airflow/cli/commands/connection_command.py
##########
@@ -112,17 +112,13 @@ def _format_connections(conns: List[Connection], fmt: 
str) -> str:
 
 
 def _is_stdout(fileio: io.TextIOWrapper) -> bool:
-    if fileio.name == '<stdout>':
-        return True
-    return False
+    return fileio.name == '<stdout>'
 
 
 def _valid_uri(uri: str) -> bool:
     """Check if a URI is valid, by checking if both scheme and netloc are 
available"""
     uri_parts = urlparse(uri)
-    if uri_parts.scheme == '' or uri_parts.netloc == '':
-        return False
-    return True
+    return uri_parts.scheme != '' or uri_parts.netloc != ''

Review comment:
       Ha, only now I know you also majored in math😄 My focus was random 
process and application in bio-stats.
   
   But anyway, not rare for math people like us to miss OR/AND time to time😄




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to