Commit 6f3568ef authored by Aleksei Lipniagov's avatar Aleksei Lipniagov

Fix rubocop failures

parent 7749eabc
......@@ -57,9 +57,8 @@ module AtomicInternalId
end
define_method("track_#{scope}_#{column}!") do
if !@internal_id_needs_tracking
return unless Feature.enabled?(:iid_always_track, default_enabled: true)
end
iid_always_track = Feature.enabled?(:iid_always_track, default_enabled: true)
return unless @internal_id_needs_tracking || iid_always_track
@internal_id_needs_tracking = false
......
......@@ -27,7 +27,7 @@ describe AtomicInternalId do
stub_feature_flags(iid_always_track: false)
end
it 'does not track the value' do
it 'does not track the value' do
expect(InternalId).not_to receive(:track_greatest)
milestone.ensure_project_iid!
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment