Skip to content

Commit 809b232

Browse files
stew-randrewsg
authored andcommitted
Make argument names and docstrings consistent for background functions (#1589)
1 parent 008ad07 commit 809b232

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

functions/helloworld/main.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,14 @@ def hello_pubsub(data, context):
8888

8989

9090
# [START functions_helloworld_storage]
91-
def hello_gcs(event, context):
91+
def hello_gcs(data, context):
9292
"""Background Cloud Function to be triggered by Cloud Storage.
9393
Args:
94-
event (dict): The dictionary with data specific to this type of event.
94+
data (dict): The dictionary with data specific to this type of event.
9595
context (google.cloud.functions.Context): The Cloud Functions
9696
event context.
9797
"""
98-
print("File: {}.".format(event['objectId']))
98+
print("File: {}.".format(data['objectId']))
9999
# [END functions_helloworld_storage]
100100

101101

0 commit comments

Comments
 (0)