Skip to content

Commit

Permalink
address Rails/CompactBlank linting error
Browse files Browse the repository at this point in the history
  • Loading branch information
edsu committed Aug 26, 2024
1 parent 233642d commit 5caa6a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/tasks/wos.rake
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace :wos do
raise "Could not find Author by cap_profile_id: #{args[:cap_profile_id]}." if author.nil?

puts 'Reading WosUIDs from STDIN...'
uids = $stdin.read.split("\n").each(&:strip!).select(&:present?)
uids = $stdin.read.split("\n").each(&:strip!).compact_blank
abort 'No records read from STDIN' if uids.blank?
puts "#{uids.count} UIDs to assign to Author #{author.id} (cap_profile_id: #{author.cap_profile_id})"
new_uids = WebOfScience.harvester.process_uids(author, uids)
Expand Down
2 changes: 1 addition & 1 deletion lib/web_of_science/map_citation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def extract_pages(page)

fst = page['begin'].to_s.strip
lst = page['end'].to_s.strip
fst == lst ? fst : [fst, lst].select(&:present?).join('-')
fst == lst ? fst : [fst, lst].compact_blank.join('-')
end
end
end

0 comments on commit 5caa6a7

Please sign in to comment.