Skip to content

Commit 4191d65

Browse files
committed
clean up a few tiny things
1 parent 8276bfd commit 4191d65

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/result.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { Type } from './type'
22
import { inspect } from 'util'
3-
export { inspect }
43

54
const MAX_ERR_LINE_LENGTH = 40
65
const INDENT = ' '
@@ -261,12 +260,10 @@ export function pathToString(lookupPath: PathElement[]): string {
261260
export class StructuralError extends Error {
262261
readonly value: any // The invalid value
263262
readonly type: Type<any> // Expected type of value
264-
readonly causes: Err<any>[] // causes
263+
readonly causes: Err<any>[] // Flattened causes of this error
265264

266265
constructor(msg: string, opts: Pick<StructuralError, 'value' | 'type' | 'causes'>) {
267-
268266
super(msg)
269-
// TODO: the above "which" doesn't necessarily make sense in all cases.
270267
this.value = opts.value
271268
this.type = opts.type
272269
this.causes = opts.causes

0 commit comments

Comments
 (0)