Skip to content

Commit

Permalink
Merge pull request #28245 from y-yagi/use_blank_instead_of_empty
Browse files Browse the repository at this point in the history
Use `blank?` instead of `empty?`
  • Loading branch information
kaspth committed Mar 2, 2017
2 parents a815c7c + 3279394 commit f294e64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion railties/lib/rails/commands/secrets/secrets_command.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def setup
end

def edit
if ENV["EDITOR"].empty?
if ENV["EDITOR"].to_s.empty?
say "No $EDITOR to open decrypted secrets in. Assign one like this:"
say ""
say %(EDITOR="mate --wait" bin/rails secrets:edit)
Expand Down

0 comments on commit f294e64

Please sign in to comment.