Skip to content

Commit 7a3c04c

Browse files
committed
refactor: ensure config was given?
1 parent 03a5d0e commit 7a3c04c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

script/files.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -920,9 +920,9 @@ function m.resolvePathPlaceholders(path)
920920
return addonsPath
921921
end
922922
local client = require("client")
923-
local storagePath = fs.path(client.getOption("storagePath"))
923+
local storagePath = client.getOption("storagePath")
924924
if storagePath then
925-
addonsPath = (storagePath / "addonManager/addons"):string()
925+
addonsPath = (fs.path(storagePath) / "addonManager" / "addons"):string()
926926
else
927927
-- Common path across OSes
928928
local dataPath = "User/globalStorage/sumneko.lua/addonManager/addons"

0 commit comments

Comments
 (0)