Merge pull request #304 from tonglil/typos [CI SKIP]

minor typo
This commit is contained in:
Brad Rydzewski 2020-10-16 10:10:19 -04:00 committed by GitHub
commit 5834d8dff9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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"