Reduce the nesting of if statements by using a `PushAction` enum that is constructed by checking the `dst` reference and parsing the correct action, one of: - `OpenPatch` - `UpdatePatch` - `PushRef` This makes the intent of the code a little bit more clear and reduces the tabbing of big code blocks. It also captures the error specifically for handling the parsing of this `dst` reference. |
||
|---|---|---|
| .. | ||
| radicle | ||
| radicle-cli | ||
| radicle-cli-test | ||
| radicle-cob | ||
| radicle-crypto | ||
| radicle-dag | ||
| radicle-fetch | ||
| radicle-node | ||
| radicle-protocol | ||
| radicle-remote-helper | ||
| radicle-schemars | ||
| radicle-signals | ||
| radicle-ssh | ||
| radicle-systemd | ||
| radicle-term | ||