Remove unnecessary nil check in return
This commit is contained in:
parent
3bd582b3d5
commit
bff6f5d609
|
@ -178,11 +178,6 @@ func resourceOPCStorageVolumeSnapshotRead(d *schema.ResourceData, meta interface
|
||||||
return fmt.Errorf("Error reading storage volume snapshot '%s': %v", name, err)
|
return fmt.Errorf("Error reading storage volume snapshot '%s': %v", name, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
if result == nil {
|
|
||||||
d.SetId("")
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
d.Set("volume_name", result.Volume)
|
d.Set("volume_name", result.Volume)
|
||||||
d.Set("description", result.Description)
|
d.Set("description", result.Description)
|
||||||
d.Set("name", result.Name)
|
d.Set("name", result.Name)
|
||||||
|
|
Loading…
Reference in New Issue