Commit dd441b8
Just: drop the separator check, keep the single read of the variable
The check rejected a `JUST_CMD_RULE` that was not a shell comment. That is a
real failure mode, but not one worth code: setting the variable at all means
being able to run commands already, so the check only defended whoever set it
from themselves, and nothing sets it. The requirement is documented where the
value is read, which is where someone about to set it is looking.
`_given_rule` stays. Naming the value was about not spelling
`env('JUST_CMD_RULE', '')` twice, which stands whether or not it is checked.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>1 parent e5ae5ea commit dd441b8
2 files changed
Lines changed: 5 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | | - | |
166 | | - | |
167 | | - | |
| 165 | + | |
| 166 | + | |
168 | 167 | | |
169 | 168 | | |
170 | 169 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
| 32 | + | |
| 33 | + | |
36 | 34 | | |
37 | 35 | | |
38 | 36 | | |
| |||
44 | 42 | | |
45 | 43 | | |
46 | 44 | | |
47 | | - | |
| 45 | + | |
48 | 46 | | |
49 | 47 | | |
50 | 48 | | |
| |||
0 commit comments