Skip to content

Commit

Permalink
Missing comment
Browse files Browse the repository at this point in the history
  • Loading branch information
LarryOsterman committed Oct 16, 2024
1 parent cacf222 commit 7ff45da
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,7 @@ impl ProducerClient {
.await?;
let present = scopes
.insert(url.clone(), token);
// insert returns some if it *fails* to insert, None if it succeeded.
if present.is_some() {
return Err(Error::from(ErrorKind::UnableToAddAuthenticationToken));
}
Expand Down

0 comments on commit 7ff45da

Please sign in to comment.