Skip to content

Commit

Permalink
make changes from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
lauramccluskey1 committed Jan 29, 2024
1 parent 42a1ef3 commit d4d9719
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/import/brca/providers/oxford/oxford_handler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def process_fields(record)

def brca_file?
file_name = @batch.original_filename
file_path = file_name.slice(0, file_name.rindex('/'))
file_path = File.dirname(file_name)
file_path_array = file_name.split('/')
pseudo_file = file_path_array[file_path_array.length - 1]
pseudo_filename = pseudo_file.sub(/.xls[x]?.pseudo/, '')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def process_fields(record)

def colorectal_file?
file_name = @batch.original_filename
file_path = file_name.slice(0, file_name.rindex('/'))
file_path = File.dirname(file_name)
file_path_array = file_name.split('/')
pseudo_file = file_path_array[file_path_array.length - 1]
pseudo_filename = pseudo_file.sub(/.xls[x]?.pseudo/, '')
Expand Down

0 comments on commit d4d9719

Please sign in to comment.