Fix further style issues

Signed-off-by: Matthew Heon <matthew.heon@gmail.com>

Closes: #268
Approved by: rhatdan
This commit is contained in:
Matthew Heon
2018-02-07 16:30:53 -05:00
committed by Atomic Bot
parent c8e296c83e
commit 75914199f3
2 changed files with 3 additions and 6 deletions

View File

@ -920,13 +920,11 @@ func (s *SQLState) RemovePodContainers(pod *Pod) (err error) {
// Remove state first, as it needs the subquery on containers
// Don't bother checking if we actually removed anything, we just want to
// empty the pod
_, err = tx.Exec(removeCtrState, pod.ID())
if err != nil {
if _, err := tx.Exec(removeCtrState, pod.ID()); err != nil {
return errors.Wrapf(err, "error removing pod %s containers from state table", pod.ID())
}
_, err = tx.Exec(removeCtr, pod.ID())
if err != nil {
if _, err := tx.Exec(removeCtr, pod.ID()); err != nil {
return errors.Wrapf(err, "error removing pod %s containers from containers table", pod.ID())
}