Skip to content

Commit 4af9457

Browse files
openrefactoryTHS-on
authored andcommitted
Comment: Fixed an inappropriate test expression to remove a logical short circuit. Signed-off-by: Munawar Hafiz <munawar.hafiz@gmail.com>
Signed-off-by: OpenRefactory, Inc <56681071+openrefactory@users.noreply.github.com>
1 parent d2429d0 commit 4af9457

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

keylime/web_util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ def get_restful_params(urlstring: str) -> Dict[str, Union[str, None]]:
413413

414414
# If first token looks like an API version, validate it and make sure it's supported
415415
api_version = "0"
416-
if path_tokens[0] and len(path_tokens[0]) >= 0 and re.match(r"^v?[0-9]+(\.[0-9]+)?", path_tokens[0]):
416+
if path_tokens[0] and re.match(r"^v?[0-9]+(\.[0-9]+)?", path_tokens[0]):
417417
version = keylime_api_version.normalize_version(path_tokens[0])
418418

419419
if keylime_api_version.is_supported_version(version):

0 commit comments

Comments
 (0)