tengqm commented on code in PR #6985:
URL: https://github.com/apache/gravitino/pull/6985#discussion_r2049781655
##########
clients/client-python/gravitino/filesystem/gvfs_base_operations.py:
##########
@@ -121,6 +123,14 @@ def __init__(
self._catalog_cache = LRUCache(maxsize=100)
self._catalog_cache_lock = rwlock.RWLockFair()
+ self._enable_credential_vending = (
+ False
+ if options is None
+ else options.get(
+ GVFSConfig.GVFS_FILESYSTEM_ENABLE_CREDENTIAL_VENDING,
+ self.ENABLE_CREDENTIAL_VENDING_DEFAULT,
+ )
+ )
Review Comment:
This code is difficult to parse ... why don't we use just `if ... else`?
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]