Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
REVIEW: Simplify implications
Lorenz Leutgeb committed 6 months ago
commit 329b11b6682fdf4cf30d2d2cf1989e4787af7a6f
parent 5c4fd1b8116221f01d25bf703c4c2ece39a05c22
1 file changed +2 -10
modified crates/radicle-cli/src/commands/remote/args.rs
@@ -75,11 +75,7 @@ pub(super) struct FetchArgs {
impl FetchArgs {
    pub(super) fn should_fetch(&self) -> bool {
        let Self { fetch, no_fetch } = self;
-
        match (fetch, no_fetch) {
-
            (true, false) => true,
-
            (false, true) => false,
-
            _ => true,
-
        }
+
        *fetch || !no_fetch
    }
}

@@ -97,11 +93,7 @@ pub(super) struct SyncArgs {
impl SyncArgs {
    pub(super) fn should_sync(&self) -> bool {
        let Self { sync, no_sync } = self;
-
        match (sync, no_sync) {
-
            (true, false) => true,
-
            (false, true) => false,
-
            _ => true,
-
        }
+
        *sync || !no_sync
    }
}