Repository navigation
Commit 0ee2224
taskgate: read asks what the path is before reading it
The check after a failed read let `&&` become `||` unnoticed: a file that
exists but cannot be read would have been taken for one holding nothing.
Asking first whether the path is gone or a directory, then reading, leaves
every other failure to the read's own error, and each edit mutate makes to
the condition breaks a test.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent f33a805 commit 0ee2224
1 file changed
Lines changed: 7 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
106 | | - | |
| 105 | + | |
| 106 | + | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
109 | 113 | | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | 114 | | |
114 | 115 | | |
115 | 116 | | |
| |||
0 commit comments