Remove unnecessary local

This commit is contained in:
Matthew Watt 2023-10-10 07:50:07 -05:00
parent 2a4d9e06da
commit 73f263682e
1 changed files with 2 additions and 3 deletions

View File

@ -759,8 +759,7 @@ pub(crate) fn get_received_memo(
conn: &rusqlite::Connection,
note_id: NoteId,
) -> Result<Option<Memo>, SqliteClientError> {
let protocol = note_id.protocol();
let memo_bytes: Option<Vec<_>> = match protocol {
let memo_bytes: Option<Vec<_>> = match note_id.protocol() {
ShieldedProtocol::Sapling => conn
.query_row(
"SELECT memo FROM sapling_received_notes
@ -777,7 +776,7 @@ pub(crate) fn get_received_memo(
.flatten(),
_ => {
return Err(SqliteClientError::UnsupportedPoolType(PoolType::Shielded(
protocol,
note_id.protocol(),
)))
}
};