Skip to content

Commit 5c74840

Browse files
Format Format Format
1 parent fd589e8 commit 5c74840

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

_blogposts/2025-09-01-let-unwrap.mdx

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ let getUser = async id => {
127127
}
128128
129129
// ERROR!
130-
// You forgot to handle a possible case here, for example:
130+
// You forgot to handle a possible case here, for example:
131131
// | Error(#Unauthorized | #UserNotFound | #DecodeError | #UserNotActive)
132132
let main = async () => {
133133
switch await getUser("123") {
@@ -153,7 +153,7 @@ async function getUser(id) {
153153
if (e$2.TAG === "Ok") {
154154
return {
155155
TAG: "Ok",
156-
_0: decodedUser
156+
_0: decodedUser,
157157
};
158158
} else {
159159
return e$2;
@@ -172,12 +172,8 @@ async function main() {
172172
}
173173
throw {
174174
RE_EXN_ID: "Match_failure",
175-
_1: [
176-
"playground.res",
177-
28,
178-
2
179-
],
180-
Error: new Error()
175+
_1: ["playground.res", 28, 2],
176+
Error: new Error(),
181177
};
182178
}
183179
```

0 commit comments

Comments
 (0)