Skip to content

Commit 0093aa7

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

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
@@ -434,7 +434,10 @@ def _resolve( # noqa: PLR0915 C901
434434
# When no default variant is configured, the server returns an empty/zero proto
435435
# value with reason=DEFAULT. For DISABLED flags the server omits the variant too.
436436
# In both cases, return the caller's code default value.
437-
if response.reason in (Reason.DEFAULT, Reason.DISABLED) and not response.variant:
437+
if (
438+
response.reason in (Reason.DEFAULT, Reason.DISABLED)
439+
and not response.variant
440+
):
438441
value = default_value
439442

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

0 commit comments

Comments
 (0)