remove old comment, and clarify logic
@@ -51,7 +51,7 @@ func NewSkaffoldCommand(out, err io.Writer) *cobra.Command {
rootCmd.PersistentPreRunE = func(cmd *cobra.Command, args []string) error {
// only prune if flag is set, AND we're not caching
- opts.Prune = !(opts.NoPrune || opts.CacheArtifacts)
+ opts.Prune = !opts.NoPrune && !opts.CacheArtifacts
if err := SetUpLogs(err, v); err != nil {
return err
}
