Skip to content

Commit 4d9c8eb

Browse files
aepfligruebel
andauthored
Update providers/openfeature-provider-flagd/src/openfeature/contrib/provider/flagd/resolvers/process/custom_ops.py
Co-authored-by: Anton Grübel <[email protected]> Signed-off-by: Simon Schrottner <[email protected]>
1 parent b55a198 commit 4d9c8eb

File tree

1 file changed

+1
-1
lines changed
  • providers/openfeature-provider-flagd/src/openfeature/contrib/provider/flagd/resolvers/process

1 file changed

+1
-1
lines changed

providers/openfeature-provider-flagd/src/openfeature/contrib/provider/flagd/resolvers/process/custom_ops.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def sem_ver(data: dict, *args: JsonLogicArg) -> typing.Optional[bool]: # noqa:
159159

160160
def parse_version(arg: typing.Any) -> semver.Version:
161161
version = str(arg)
162-
if version.startswith("v") or version.startswith("V"):
162+
if version.startswith(("v", "V")):
163163
version = version[1:]
164164

165165
return semver.Version.parse(version)

0 commit comments

Comments
 (0)