Skip to content

Commit

Permalink
use empty?
Browse files Browse the repository at this point in the history
  • Loading branch information
copiousfreetime committed May 3, 2024
1 parent eb2f9d7 commit 2731f8a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/launchy/applications/browser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def browser_env

browser_env = ENV["BROWSER"].split(File::PATH_SEPARATOR)
browser_env.flatten!
browser_env.delete_if { |b| b.nil? || b.strip.size.zero? }
browser_env.delete_if { |b| b.nil? || b.strip.empty? }
browser_env
end

Expand Down
2 changes: 1 addition & 1 deletion lib/launchy/argv.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def valid?
end

def blank?
@argv.empty? || @argv.first.strip.size.zero?
@argv.empty? || @argv.first.strip.empty?
end

def executable?
Expand Down

0 comments on commit 2731f8a

Please sign in to comment.