Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Commit

Permalink
remove extraneous check on dontkill
Browse files Browse the repository at this point in the history
  • Loading branch information
Ira Miller committed Dec 26, 2019
1 parent da41b77 commit 459ea3b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions core/container/kubernetescontroller/kubernetescontroller.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,11 +185,7 @@ func (api *KubernetesAPI) Start(ccid ccintf.CCID,
func (api *KubernetesAPI) Stop(ccid ccintf.CCID, timeout uint, dontkill bool, dontremove bool) error {
kubernetesLogger.Infof("Stop chaincode %s requested. [kill=%t, remove=%t]", ccid.Name, !dontkill, !dontremove)
// Remove any existing deployments by matching labels
if !dontremove && !dontremove {
return api.stopAllInternal(ccid)
}

return nil
return api.stopAllInternal(ccid)
}

// Wait blocks until the container stops and returns the exit code of the container.
Expand Down

0 comments on commit 459ea3b

Please sign in to comment.