Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
wnoise
· 6y ago · 0 comments
> - val old = args[0].let(::File).readText() > - val new = args[1].let(::File).readText() > + val old = args[0].let(Paths::get).let(Paths::readString) > + val new = args[0].let(Paths::get).let(Paths::readString)
Missed index. 0!=1.
Comments
[–]
xvector
6y ago
That’s an impressive catch. I would never have noticed this. How did you get this good at code review?
[–]
saagarjha
6y ago
It helps that the correct code is just above the buggy replacement…
[–]
wnoise
OP
6y ago
Reading lots of code. And as the other commenter says, it's a bit easier when the correct code is right above it.
[–]
burntcookie90
6y ago
Fixed here:
https://github.com/JakeWharton/jakewharton.com/commit/dbe1cf...