Commit ef148a80 authored by Max Woolf's avatar Max Woolf
Browse files

style(rate_limit): fix indentation in evaluate_rule count branch

The if-expression body aligned at column 24 (after `count, ttl = `),
producing 23-space indentation on the SADD/INCR call lines — not a
multiple of 2, which editorconfig-checker flags. Hoist the `if` to its
own line so the body sits at standard 2-space indentation.

Co-Authored-By: default avatarClaude Opus 4.7 (1M context) <noreply@anthropic.com>
parent 9a9fc079
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -147,7 +147,8 @@ module Labkit

        # cost is ignored for count_distinct rules: SADD is binary (a member is
        # either added or not), and the post-add count is SCARD regardless.
        count, ttl = if rule.count_distinct
        count, ttl =
          if rule.count_distinct
            sadd_with_ttl(redis_key, identifier[rule.count_distinct], resolved_period)
          else
            incr_with_ttl(redis_key, resolved_period, cost)