diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-06-06 19:09:49 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-06-06 19:09:49 +0900 |
| commit | c688de488d72e67ab1650b50adef4ad11f5de756 (patch) | |
| tree | b522ef7c82abbe8f1318fa693cc98fdb6815db6c /crates/shirabe-class-map-generator | |
| parent | 23f8a0dc3e08949ec78e050b7642c605fa2aaaf5 (diff) | |
| download | php-shirabe-c688de488d72e67ab1650b50adef4ad11f5de756.tar.gz php-shirabe-c688de488d72e67ab1650b50adef4ad11f5de756.tar.zst php-shirabe-c688de488d72e67ab1650b50adef4ad11f5de756.zip | |
refactor(installed-repository): make add_repository infallible with assert
The repository type check was an internal invariant, not a recoverable
error condition. Replace the Result-returning validation with an
assert!, matching Composer's design where add_repository throws only on
a programming error, and drop the now-unneeded error handling at call
sites.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe-class-map-generator')
0 files changed, 0 insertions, 0 deletions
