Skip to content

Commit

Permalink
remove double check
Browse files Browse the repository at this point in the history
  • Loading branch information
Akida31 committed Feb 16, 2023
1 parent 823ab52 commit 8502fa8
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/cargo/ops/registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -898,9 +898,6 @@ pub fn registry_login(
});

if let Some(tok) = new_token.as_token() {
if tok.is_empty() {
bail!("please provide a non-empty token");
}
crates_io::check_token(tok.as_ref().expose())?;
}
}
Expand Down

0 comments on commit 8502fa8

Please sign in to comment.