Skip to content

Commit b4fe97c

Browse files
committed
fix(assertions): return length instead of panicking on no mismatch
1 parent 3612349 commit b4fe97c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/assertions/log_assertion.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,5 +90,5 @@ func findMisMatchOffset(expectedBytes []byte, actualBytes []byte) int {
9090
return i
9191
}
9292
}
93-
panic("Codecrafters Internal Error: No mismatch found")
93+
return len(expectedBytes)
9494
}

0 commit comments

Comments
 (0)