Skip to content

Commit b0ca761

Browse files
committed
Updater: check if version record of updated module is really a table before tying to index it
1 parent 7485ba0 commit b0ca761

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modules/DependencyControl/Updater.moon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ class UpdateTask extends UpdaterBase
340340
else return finish -55
341341

342342
-- get a fresh version record
343-
if ref.version.__class == DependencyControl
343+
if type(ref.version) == "table" and ref.version.__class == DependencyControl
344344
@record = ref.version
345345
else
346346
return finish -57 unless ref.version

0 commit comments

Comments
 (0)