Skip to content

Commit

Permalink
Appease ameba
Browse files Browse the repository at this point in the history
  • Loading branch information
maxfierke committed Jan 28, 2024
1 parent c704e48 commit 40c2669
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/mstrap/runtime_managers/mise.cr
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 6 additions & 5 deletions src/mstrap/runtimes/go.cr
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down
3 changes: 1 addition & 2 deletions src/mstrap/runtimes/node.cr
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 40c2669

Please sign in to comment.