Remove unnecessary Option from get_account_data

This commit is contained in:
Michael Vines
2019-03-16 08:54:22 -07:00
parent 4b04bc8612
commit ad252fe4c5
4 changed files with 5 additions and 6 deletions

View File

@ -251,7 +251,7 @@ impl LocalCluster {
info!("Checking for vote account registration");
let vote_account_user_data = client.get_account_data(&vote_account_pubkey);
if let Ok(Some(vote_account_user_data)) = vote_account_user_data {
if let Ok(vote_account_user_data) = vote_account_user_data {
if let Ok(vote_state) = VoteState::deserialize(&vote_account_user_data) {
if vote_state.delegate_id == delegate_id {
return Ok(());