Skip to content

Commit ab8b863

Browse files
author
Luke Sneeringer
committed
Change if/elif to if/if.
1 parent ae282d1 commit ab8b863

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pubsub/google/cloud/pubsub/_http.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ def subscription_seek(self, subscription_path, time=None, snapshot=None):
489489
data = {}
490490
if time is not None:
491491
data['time'] = time
492-
elif snapshot is not None:
492+
if snapshot is not None:
493493
data['snapshot'] = snapshot
494494
self.api_request(method='POST', path=path, data=data)
495495

pubsub/tests/unit/test__http.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,7 @@ def test_list_snapshots_no_paging(self):
819819

820820
def test_list_snapshots_with_paging(self):
821821
import six
822-
822+
823823
from google.cloud.pubsub.client import Client
824824
from google.cloud.pubsub.snapshot import Snapshot
825825

0 commit comments

Comments
 (0)