Skip to content

Commit 0301da3

Browse files
authored
fix: set default distribution to open (#6)
1 parent 7af0e8b commit 0301da3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

hooks/available.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ local shortname = require("shortname")
55
--- @param ctx table Empty table used as context, for future extension
66
--- @return table Descriptions of available versions and accompanying tool descriptions
77
function PLUGIN:Available(ctx)
8-
local distribution = ctx.args[1]
8+
local distribution = ctx.args[1] or "open"
99
local jdks = {}
1010

11-
if distribution and distribution == "all" then
11+
if distribution == "all" then
1212
for short, dist in pairs(shortname) do
1313
local tempJdks = foojay.fetchtJdkList(dist, "")
1414
for _, jdk in ipairs(tempJdks) do

0 commit comments

Comments
 (0)