minor typo

This commit is contained in:
Tony Li 2020-10-15 15:41:26 -07:00
parent e4056d8499
commit 4abe7c9d20
No known key found for this signature in database
GPG Key ID: E73DA11CDB50D072

View File

@ -94,7 +94,7 @@ func (p Plugin) Exec() error {
path := filepath.Join(dockerHome, "config.json")
err := ioutil.WriteFile(path, []byte(p.Login.Config), 0600)
if err != nil {
return fmt.Errorf("Error writeing config.json: %s", err)
return fmt.Errorf("Error writing config.json: %s", err)
}
}
@ -373,7 +373,6 @@ func commandDaemon(daemon Daemon) *exec.Cmd {
return exec.Command(dockerdExe, args...)
}
// helper to check if args match "docker prune"
func isCommandPrune(args []string) bool {
return len(args) > 3 && args[2] == "prune"