fix hound

This commit is contained in:
zmagod 2018-03-13 14:47:35 +01:00
parent 0996745781
commit 5b56f3dbd6
2 changed files with 2 additions and 4 deletions

View file

@ -8,7 +8,6 @@
# @repository: the repository in which we import the items
module RepositoryImportParser
class Importer
def initialize(sheet, mappings, user, repository)
@columns = []
@name_index = -1
@ -24,14 +23,14 @@ module RepositoryImportParser
end
def run
get_columns
fetch_columns
return check_for_duplicate_columns if check_for_duplicate_columns
import_rows!
end
private
def get_columns
def fetch_columns
@mappings.each.with_index do |(_, value), index|
if value == '-1'
# Fill blank space, so our indices stay the same

View file

@ -4,7 +4,6 @@
# it to the repository_row
module RepositoryImportParser
class RepositoryCellValueResolver
def initialize(column, user, repository)
@column = column
@user = user