Incorporating feedback review

This commit is contained in:
Ettore Di Giacinto
2022-11-23 15:11:48 +00:00
parent 193a7da9ee
commit 4234ae7034

View File

@@ -287,7 +287,12 @@ func unlockAll() error {
}
block, err := ghw.Block()
if err == nil {
if err != nil {
fmt.Printf("Warning: Error reading partitions '%s \n", err.Error())
return nil
}
for _, disk := range block.Disks {
for _, p := range disk.Partitions {
if p.Type == "crypto_LUKS" {
@@ -303,7 +308,6 @@ func unlockAll() error {
}
}
}
}
return nil
}