Commit e57aaeb
committed
fix: use lazy argument evaluation to handle errors
An instance of `.then_some` on a bool should have been `.then`.
The former evaluates its arguments eagerly, so runs _regardless
of the value of the bool_, while the latter does so lazily, which
was the desired behavior.
In testing, all of our configurations had the file we were testing
the presence of before reading. But other folks do not.
Fixes #90511 parent 4029c53 commit e57aaeb
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| |||
0 commit comments