We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
crystal tool format
1 parent 82db529 commit 0bbeef2Copy full SHA for 0bbeef2
spec/integration/subcommand_spec.cr
@@ -32,7 +32,7 @@ describe "subcommand" do
32
end
33
34
35
-private def with_path(path)
+private def with_path(path, &)
36
old_path = ENV["PATH"]
37
ENV["PATH"] = "#{File.expand_path(path)}#{Process::PATH_DELIMITER}#{ENV["PATH"]}"
38
yield
src/package.cr
@@ -139,7 +139,7 @@ module Shards
139
140
141
142
- private def each_executable_path(name)
+ private def each_executable_path(name, &)
143
exe = Shards::Helpers.exe(name)
144
yield Path["bin", exe]
145
yield Path["bin", name] unless name == exe
0 commit comments