Remove indention level made redundant by early-return
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user