Commit 5377d3d
refactor: clean up _source.py — remove redundant rstrip and normalize variable usage
In parse_github_source, subpath already has trailing slashes stripped by
strip("/"), making the subsequent rstrip("/") a no-op. In _fetch_named_ralph,
extract the ralph_name alias at the top so both early-return paths and the
search path use it consistently instead of mixing parsed.name and ralph_name.
Co-authored-by: Ralphify <noreply@ralphify.co>1 parent fe4cb5e commit 5377d3d
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| 182 | + | |
182 | 183 | | |
183 | 184 | | |
184 | 185 | | |
185 | 186 | | |
186 | | - | |
| 187 | + | |
187 | 188 | | |
188 | | - | |
| 189 | + | |
189 | 190 | | |
190 | 191 | | |
191 | | - | |
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
| |||
0 commit comments