From e66b1321bbeecd984df408e0108d61efeaab4d2d Mon Sep 17 00:00:00 2001 From: Jeremy Wadsack Date: Fri, 30 Oct 2015 09:45:23 -0700 Subject: [PATCH] Fix rubocop offense --- db/migrate/201510290041_extract_issue_tracker.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/db/migrate/201510290041_extract_issue_tracker.rb b/db/migrate/201510290041_extract_issue_tracker.rb index 1ff54dd..627e06a 100644 --- a/db/migrate/201510290041_extract_issue_tracker.rb +++ b/db/migrate/201510290041_extract_issue_tracker.rb @@ -22,13 +22,13 @@ class ExtractIssueTracker < Mongoid::Migration options.delete('_type') options.delete('_id') - _type = app.attributes['issue_tracker']['_type'] + type = app.attributes['issue_tracker']['_type'] updated_at = options.delete('updated_at') created_at = options.delete('created_at') - if TRACKER_MAPPING.include?(_type) + if TRACKER_MAPPING.include?(type) tracker = { - 'type_tracker' => TRACKER_MAPPING[_type], + 'type_tracker' => TRACKER_MAPPING[type], 'options' => options, 'updated_at' => updated_at, 'created_at' => created_at -- libgit2 0.21.2