aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2019-02-06 16:07:25 -0800
committerBruce Hill <bruce@bruce-hill.com>2019-02-06 16:07:25 -0800
commitc5f8a1b0b391439648d21565d9088b9639a0a913 (patch)
treebc33fdae6805a62c0ec04c95ccea154ccf671e51
parent92b99292a497b9cff2c6e9960a5fe4e5508bc6f3 (diff)
Fixed legibility and issue with upgrade fn
-rw-r--r--lib/compatibility/compatibility.nom16
1 files changed, 9 insertions, 7 deletions
diff --git a/lib/compatibility/compatibility.nom b/lib/compatibility/compatibility.nom
index c1c83d3..70b9e63 100644
--- a/lib/compatibility/compatibility.nom
+++ b/lib/compatibility/compatibility.nom
@@ -104,13 +104,15 @@ external:
$tree =
$tree, with
$ ->:
- if (($ is "Action" syntax tree) and $ACTION_UPGRADES.$ver.($.stub)):
- $with_upgraded_args = {
- : for $k = $v in $:
- add $k = ($v upgraded from $start_version to $end_version)
- }
- set $with_upgraded_args's metatable to ($'s metatable)
- return ($ACTION_UPGRADES.$ver.($.stub) $with_upgraded_args $end_version)
+ if ($ is "Action" syntax tree):
+ $(upgrade 1 to 2) = $ACTION_UPGRADES.$ver.($.stub)
+ if $(upgrade 1 to 2):
+ $with_upgraded_args = {
+ : for $k = $v in $:
+ add $k = ($v upgraded from $start_version to $end_version)
+ }
+ set $with_upgraded_args's metatable to ($'s metatable)
+ return (upgrade $with_upgraded_args to $end_version)
if $UPGRADES.$ver:
$with_upgraded_args = {