Skip to content

Commit 8502fa8

Browse files
committed
remove double check
1 parent 823ab52 commit 8502fa8

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/cargo/ops/registry.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -898,9 +898,6 @@ pub fn registry_login(
898898
});
899899

900900
if let Some(tok) = new_token.as_token() {
901-
if tok.is_empty() {
902-
bail!("please provide a non-empty token");
903-
}
904901
crates_io::check_token(tok.as_ref().expose())?;
905902
}
906903
}

0 commit comments

Comments
 (0)