Skip to content

Commit

Permalink
lxd/storage: Remove redundant error check (#14764)
Browse files Browse the repository at this point in the history
Surfaced in #14532
  • Loading branch information
tomponline authored Jan 10, 2025
2 parents c057c22 + f57b282 commit 76e8dbd
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lxd/storage/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -1043,9 +1043,6 @@ func VolumeUsedByProfileDevices(s *state.State, poolName string, projectName str
// storage project as volume.
for i, profile := range profiles {
profileStorageProject := project.StorageVolumeProjectFromRecord(profileProjects[i], volumeType)
if err != nil {
return err
}

// Check profile's storage project is the same as the volume's project.
// If not then the volume names mentioned in the profile's config cannot be referring to volumes
Expand Down Expand Up @@ -1109,9 +1106,6 @@ func VolumeUsedByInstanceDevices(s *state.State, poolName string, projectName st
}

instStorageProject := project.StorageVolumeProjectFromRecord(&p, volumeType)
if err != nil {
return err
}

// Check instance's storage project is the same as the volume's project.
// If not then the volume names mentioned in the instance's config cannot be referring to volumes
Expand Down

0 comments on commit 76e8dbd

Please sign in to comment.