Skip to content

Commit

Permalink
symbol to proc
Browse files Browse the repository at this point in the history
  • Loading branch information
copiousfreetime committed May 3, 2024
1 parent a1f8472 commit 839cce7
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 @@ -32,7 +32,7 @@ def darwin_app_list
def nix_app_list
nix_de = Launchy::Detect::NixDesktopEnvironment.detect
list = nix_de.browsers
list.find_all { |argv| argv.valid? }
list.find_all(&:valid?)
end

# use a call back mechanism to get the right app_list that is decided by the
Expand Down
2 changes: 1 addition & 1 deletion lib/launchy/runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def dry_run(cmd, *args)
#
def shell_commands(cmd, args)
cmdline = [cmd.to_s.shellsplit]
cmdline << args.flatten.collect { |a| a.to_s }
cmdline << args.flatten.collect(&:to_s)
commandline_normalize(cmdline)
end

Expand Down

0 comments on commit 839cce7

Please sign in to comment.