diff --git a/src/mstrap/runtime_managers/mise.cr b/src/mstrap/runtime_managers/mise.cr index 6d7a919..49fe5fb 100644 --- a/src/mstrap/runtime_managers/mise.cr +++ b/src/mstrap/runtime_managers/mise.cr @@ -30,7 +30,7 @@ module MStrap mise_installed = JSON.parse(mise_json_output) if installed = mise_installed.as_a? - installed.map { |version| version["version"].as_s } + installed.map(&.["version"].as_s) else Array(String).new end diff --git a/src/mstrap/runtimes/go.cr b/src/mstrap/runtimes/go.cr index f88c809..144278a 100644 --- a/src/mstrap/runtimes/go.cr +++ b/src/mstrap/runtimes/go.cr @@ -19,11 +19,12 @@ module MStrap def install_packages(packages : Array(Defs::PkgDef), runtime_version : String? = nil) : Bool packages.all? do |pkg| - cmd_args = if SemanticVersion.parse(runtime_version) >= GO_INSTALL_MIN_VERSION - ["install"] - else - ["get", "-u"] - end + cmd_args = + if SemanticVersion.parse(runtime_version) >= GO_INSTALL_MIN_VERSION + ["install"] + else + ["get", "-u"] + end if version = pkg.version cmd_args << "#{pkg.name}@#{version}" diff --git a/src/mstrap/runtimes/node.cr b/src/mstrap/runtimes/node.cr index 220c645..5f0c3db 100644 --- a/src/mstrap/runtimes/node.cr +++ b/src/mstrap/runtimes/node.cr @@ -10,8 +10,7 @@ module MStrap def bootstrap if File.exists?("yarn.lock") - cmd "brew install yarn", quiet: true && - skip_reshim { runtime_exec "yarn install" } + cmd "brew install yarn", quiet: true && skip_reshim { runtime_exec "yarn install" } elsif File.exists?("package.json") skip_reshim { runtime_exec "npm install" } end