Skip to content

Commit fae5769

Browse files
authored
Merge pull request #319 from imclerran/fix-invalid-try
Replace invalid ? operator with try
2 parents ca9a2a3 + b9966c6 commit fae5769

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

flake.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

platform/Path.roc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ read_utf8! : Path => Result Str [FileReadErr Path IOErr, FileReadUtf8Err Path _]
307307
read_utf8! = |path|
308308
bytes =
309309
Host.file_read_bytes!(InternalPath.to_bytes(path))
310-
|> Result.map_err?(|read_err| FileReadErr(path, InternalIOErr.handle_err(read_err)))
310+
|> Result.map_err(|read_err| FileReadErr(path, InternalIOErr.handle_err(read_err)))?
311311

312312
Str.from_utf8(bytes)
313313
|> Result.map_err(|err| FileReadUtf8Err(path, err))

0 commit comments

Comments
 (0)