Remove variable, use expression directly
This commit is contained in:
parent
166a0cf5dd
commit
e8c7df4593
1 changed files with 2 additions and 4 deletions
|
@ -88,10 +88,8 @@ pub fn remove_command(module: &Module, env: CommandEnv) -> CommandResult {
|
||||||
})
|
})
|
||||||
.collect::<Vec<StorageBackendError>>();
|
.collect::<Vec<StorageBackendError>>();
|
||||||
|
|
||||||
let nerrs = errs.len();
|
if errs.len() != 0 {
|
||||||
|
warn!("{} Errors occured while removing {} files", errs.len(), nfiles);
|
||||||
if nerrs != 0 {
|
|
||||||
warn!("{} Errors occured while removing {} files", nerrs, nfiles);
|
|
||||||
let moderr = ModuleError::new("File removal failed");
|
let moderr = ModuleError::new("File removal failed");
|
||||||
|
|
||||||
// TODO : Collect StorageBackendErrors
|
// TODO : Collect StorageBackendErrors
|
||||||
|
|
Loading…
Reference in a new issue