Skip to content

Commit b045558

Browse files
chore: generate
1 parent ed802fd commit b045558

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

packages/opencode/src/util/named-schema-error.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,7 @@ export function namedSchemaError<Tag extends string, Fields extends Schema.Struc
3232
static readonly Schema = wire
3333
static readonly tag = tag
3434
public static isInstance(input: unknown): input is NamedSchemaError {
35-
return (
36-
typeof input === "object" &&
37-
input !== null &&
38-
"name" in input &&
39-
(input as { name: unknown }).name === tag
40-
)
35+
return typeof input === "object" && input !== null && "name" in input && (input as { name: unknown }).name === tag
4136
}
4237

4338
public override readonly name: Tag = tag

0 commit comments

Comments
 (0)