Remove variable, use expression directly

This commit is contained in:
Matthias Beyer 2015-12-05 11:03:05 +01:00
parent 166a0cf5dd
commit e8c7df4593

View file

@ -88,10 +88,8 @@ pub fn remove_command(module: &Module, env: CommandEnv) -> CommandResult {
})
.collect::<Vec<StorageBackendError>>();
let nerrs = errs.len();
if nerrs != 0 {
warn!("{} Errors occured while removing {} files", nerrs, nfiles);
if errs.len() != 0 {
warn!("{} Errors occured while removing {} files", errs.len(), nfiles);
let moderr = ModuleError::new("File removal failed");
// TODO : Collect StorageBackendErrors