Commit 3496ec14 authored by Matias Alvarez's avatar Matias Alvarez Committed by Elliot Forbes
Browse files

fix: Rubocop offenses

parent 3ad60ef5
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -60,8 +60,8 @@ module Labkit

          # The context prefix that Labkit::Context applies to every field it
          # stores (see Labkit::Context::LOG_KEY). Any deprecated field with
          # this prefix is by convention a context field owned by whichever
          # provider populates the context (e.g. ApplicationContext) even
          # this prefix is by convention a context field, owned by whichever
          # provider populates the context (e.g. ApplicationContext), even
          # when a particular log call happens to pass it directly. Lazily
          # built so the constant is not referenced at load time.
          def context_field_prefix
@@ -94,7 +94,7 @@ module Labkit
              standard_field = deprecated_lookup[key_str]
              next unless standard_field

              # context_prefix is the Labkit::Context namespace — the field is conceptually
              # context_prefix is the Labkit::Context namespace. The field is conceptually
              # context-owned even if the caller happens to pass it directly. Otherwise
              # use direct-vs-context based on whether the caller actually included it.
              if direct_keys.include?(key_str) && !key_str.start_with?(context_prefix)