Commit 4d7ec8fb authored by Matias Alvarez's avatar Matias Alvarez Committed by Elliot Forbes
Browse files

fix: Refactor to a single line

parent 3496ec14
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -100,9 +100,7 @@ module Labkit
              if direct_keys.include?(key_str) && !key_str.start_with?(context_prefix)
                Registry.instance.record_offense(callsite_path, location.lineno, key_str, standard_field, logger_class)
              else
                Registry.instance.record_offense(
                  LogInterceptor.context_callsite, 0, key_str, standard_field, ANY_LOGGER
                )
                Registry.instance.record_offense(LogInterceptor.context_callsite, 0, key_str, standard_field, ANY_LOGGER)
              end
            end
          end