From 612e3dec9f2fe7cd8c701a7d8cea441d43859aac Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Mon, 17 Mar 2025 02:19:58 +0900 Subject: [PATCH] Drop redundant api version check in v2 code Change-Id: Ia5fc8329a7a4f7a9834d8ef588b97e09dc40fec7 --- zaqarclient/queues/v2/claim.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/zaqarclient/queues/v2/claim.py b/zaqarclient/queues/v2/claim.py index 03e9e5a0..001eae4d 100644 --- a/zaqarclient/queues/v2/claim.py +++ b/zaqarclient/queues/v2/claim.py @@ -31,8 +31,7 @@ class Claim(claim.Claim): # extract the id from the first message if msgs is not None: - if self._queue.client.api_version >= 1.1: - msgs = msgs['messages'] + msgs = msgs['messages'] self.id = msgs[0]['href'].split('=')[-1] self._message_iter = iterate._Iterator(self._queue.client,