[jsligo] If instruction requires extra `;`
if
instruction requires extra ;
.
Example:
const main = (action: parameter, store: storage) : [ list<operation> , storage ] => {
if (true) {
return [
list([]), // No operations
(match (action, {
Increment: n => add (store, n),
Decrement: n => sub (store, n),
Reset: () => 0}))
]
}; // <= here you wouldn't need a `;` . If you remove it, it doesn't compile
failwith("Not Allowed");
};
Edited by Sander