From 17253a45e03467b6f4a7384d2d1978c65f5e0f2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20M=C3=BCller?= Date: Fri, 11 Oct 2024 10:53:56 +0200 Subject: [PATCH] `crystal tool format` with Crystal 1.15.0-dev --- spec/integration/subcommand_spec.cr | 2 +- src/package.cr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/integration/subcommand_spec.cr b/spec/integration/subcommand_spec.cr index 89226a04..86da59c0 100644 --- a/spec/integration/subcommand_spec.cr +++ b/spec/integration/subcommand_spec.cr @@ -32,7 +32,7 @@ describe "subcommand" do end end -private def with_path(path) +private def with_path(path, &) old_path = ENV["PATH"] ENV["PATH"] = "#{File.expand_path(path)}#{Process::PATH_DELIMITER}#{ENV["PATH"]}" yield diff --git a/src/package.cr b/src/package.cr index 3dfe007c..09f8a70b 100644 --- a/src/package.cr +++ b/src/package.cr @@ -139,7 +139,7 @@ module Shards end end - private def each_executable_path(name) + private def each_executable_path(name, &) exe = Shards::Helpers.exe(name) yield Path["bin", exe] yield Path["bin", name] unless name == exe