diff --git a/.rubocop.yml b/.rubocop.yml index 5336c0b7..def4c57c 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -8,6 +8,8 @@ AllCops: - test/fixtures/**/* # Get the code passing first then we will enable for tests - test/**/* +Performance: + enabled: true Documentation: Enabled: false Metrics/MethodLength: diff --git a/lib/coverband/adapters/hash_redis_store.rb b/lib/coverband/adapters/hash_redis_store.rb index 12ee4780..1b5366ce 100644 --- a/lib/coverband/adapters/hash_redis_store.rb +++ b/lib/coverband/adapters/hash_redis_store.rb @@ -139,7 +139,7 @@ def script_input(key:, file:, file_hash:, data:, report_time:, updated_time:) file_length: data.length, hash_key: key } - meta.merge!(last_updated_at: updated_time) if updated_time + meta[:last_updated_at] = updated_time if updated_time { hash_key: key, meta: meta,