Skip to content

Commit e439b30

Browse files
committed
style(flagd): apply ruff format to DISABLED guard
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
1 parent 91ee54e commit e439b30

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • providers/openfeature-provider-flagd/src/openfeature/contrib/provider/flagd/resolvers

providers/openfeature-provider-flagd/src/openfeature/contrib/provider/flagd/resolvers/grpc.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,10 @@ def _resolve( # noqa: PLR0915 C901
447447
# When no default variant is configured, the server returns an empty/zero proto
448448
# value with reason=DEFAULT. For DISABLED flags the server omits the variant too.
449449
# In both cases, return the caller's code default value.
450-
if response.reason in (Reason.DEFAULT, Reason.DISABLED) and not response.variant:
450+
if (
451+
response.reason in (Reason.DEFAULT, Reason.DISABLED)
452+
and not response.variant
453+
):
451454
value = default_value
452455

453456
# Got a valid flag and valid type. Return it.

0 commit comments

Comments
 (0)