Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
andrzejsliwa committed Mar 5, 2018
1 parent c24ad48 commit b89a064
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/generators/component/component_generator.rb
Expand Up @@ -180,6 +180,7 @@ def sort_lines_alphabetically!(path)
return if lines.empty?

lines = lines.uniq.sort

File.open(path, "w") do |f|
lines.each do |line|
f.write(line)
Expand Down

0 comments on commit b89a064

Please sign in to comment.