fix(cond): remove redundant boolean operations and replace them with their correct analogs
This commit is contained in:
@@ -125,8 +125,8 @@ pub fn hamming_decrypt_data(data: &Vec<u8>, result_string: &mut String, length_o
|
||||
}
|
||||
}
|
||||
|
||||
if data.len() > 0 {
|
||||
if errors.len() == 0 {
|
||||
if !data.is_empty() {
|
||||
if errors.is_empty() {
|
||||
result_string.push_str("Все коды корректны.");
|
||||
} else {
|
||||
result_string.push_str(errors.as_str());
|
||||
|
||||
Reference in New Issue
Block a user