Skip to content

Commit

Permalink
enable performance rubocop, fix small perf issue
Browse files Browse the repository at this point in the history
  • Loading branch information
danmayer committed Dec 1, 2019
1 parent ab24f20 commit 3ab578e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion lib/coverband/adapters/hash_redis_store.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3ab578e

Please sign in to comment.