mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-21 02:20:43 +08:00
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.