Remove indention level made redundant by early-return

This commit is contained in:
Kamran Khan
2020-12-03 08:14:07 -08:00
parent bec94f02be
commit 4bfce88e9b

View File

@@ -124,7 +124,7 @@ impl TryFrom<&[u8]> for APDU {
le: 0x00, le: 0x00,
case_type: ApduType::Instruction, case_type: ApduType::Instruction,
}); });
} else { }
// Lc is not zero-bytes in length, let's figure out how long it is // Lc is not zero-bytes in length, let's figure out how long it is
let byte_0 = payload[0]; let byte_0 = payload[0];
if payload.len() == 1 { if payload.len() == 1 {
@@ -225,7 +225,7 @@ impl TryFrom<&[u8]> for APDU {
}); });
} }
} }
}
return Err(ApduStatusCode::SW_INTERNAL_EXCEPTION); return Err(ApduStatusCode::SW_INTERNAL_EXCEPTION);
} }
} }