Skip to content

Commit

Permalink
Small code updates for better visibility
Browse files Browse the repository at this point in the history
Signed-off-by: Łukasz Gryglicki <[email protected]>
  • Loading branch information
lukaszgryglicki committed Feb 23, 2024
1 parent a95e21d commit 8f61b98
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/affiliations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ def affiliations(affiliations_file, json_file, email_map)
ans = answers[e]
else
s = "Line #{ln}, user #{users[e][0][1]['login']}, email #{e} has affiliation source type '#{sources[e]}' which has higher priority than 'manual'\n"
s += "Config affiliations: #{eaffs[e].keys.join(', ')}\nJSON affiliations: #{users[e][0][1]['affiliation']}\nNew affiliations: #{affs_str}\nReplace? (y/n/q/s)"
s += "Config affiliations: #{eaffs[e].keys.join(', ')}\nJSON affiliations: #{users[e][0][1]['affiliation']}\nNew affiliations: #{affs_str}\nReplace? (y/n/q/s)"
puts s
ans = mgetc.downcase
puts "> #{ans}"
Expand Down Expand Up @@ -329,7 +329,7 @@ def affiliations(affiliations_file, json_file, email_map)
ans = answers[e]
else
s = "Line #{ln}, user #{users[e][0][1]['login']}, email #{e} has affiliation source type '#{sources[e]}' which has higher priority than 'manual'\n"
s += "Config affiliations: #{eaffs[e].keys.join(', ')}\nJSON affiliations: #{users[e][0][1]['affiliation']}\nNew affiliations: #{affs_str}\nReplace? (y/n/q/s)"
s += "Config affiliations: #{eaffs[e].keys.join(', ')}\nJSON affiliations: #{users[e][0][1]['affiliation']}\nNew affiliations: #{affs_str}\nReplace? (y/n/q/s)"
puts s
ans = mgetc.downcase
puts "> #{ans}"
Expand Down Expand Up @@ -539,7 +539,7 @@ def affiliations(affiliations_file, json_file, email_map)
eaffs.delete(leml)
end
if eaffs[eml].nil? || eaffs[eml].length != rolls.length
puts "Updated config email '#{eml}': '#{eaffs[eml]}' -> '#{rolls}'"
puts "Updated config email by length diff '#{eml}': '#{eaffs[eml]}' -> '#{rolls}'"
eaffs[eml] = rolls
else
diff = false
Expand Down

0 comments on commit 8f61b98

Please sign in to comment.