This commit is contained in:
Quinn Dougherty 2022-07-27 17:44:09 -04:00
parent 2279624750
commit 5f3dd12542

View File

@ -4,9 +4,7 @@ import type { SquiggleEditorProps } from "./SquiggleEditor";
import { runPartial, defaultBindings } from "@quri/squiggle-lang"; import { runPartial, defaultBindings } from "@quri/squiggle-lang";
import type { result, errorValue, bindings } from "@quri/squiggle-lang"; import type { result, errorValue, bindings } from "@quri/squiggle-lang";
function resultDefault( function resultDefault(x: result<bindings, errorValue>): bindings {
x: result<bindings, errorValue>,
): bindings {
switch (x.tag) { switch (x.tag) {
case "Ok": case "Ok":
return x.value; return x.value;