Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: revise and rename is_etag_in_json(data) #483

Merged
merged 10 commits into from Jul 9, 2021
2 changes: 1 addition & 1 deletion google/cloud/storage/retry.py
Expand Up @@ -122,7 +122,7 @@ def is_etag_in_json(data):
"""Return True if an etag is contained in the JSON body.

:type data: dict or None
:param data: A dict containing the JSON body. If not passed, returns False.
:param data: A dict representing the JSON body. If not passed, returns False.

Intended for use on calls with relatively short JSON payloads."""
tseaver marked this conversation as resolved.
Show resolved Hide resolved
return data is not None and "etag" in data
Expand Down