Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
NicholasLYang committed Nov 19, 2024
1 parent 51c75a1 commit 55fe171
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions crates/turborepo-lib/src/commands/link.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,8 @@ pub async fn link(
REMOTE_CACHING_URL
);

if !yes {
if !should_link_remote_cache(base, &repo_root_with_tilde)? {
return Err(Error::NotLinking);
}
if !yes && !should_link_remote_cache(base, &repo_root_with_tilde)? {
return Err(Error::NotLinking);
}

let user_response = api_client
Expand Down

0 comments on commit 55fe171

Please sign in to comment.