Remove unnecessary nil check in return

This commit is contained in:
Jake Champlin 2017-04-06 12:31:33 -04:00
parent 3bd582b3d5
commit bff6f5d609
No known key found for this signature in database
GPG Key ID: DC31F41958EF4AC2
1 changed files with 0 additions and 5 deletions

View File

@ -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)