Compose: Improve error messages when resource creation/updates fail.

Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
Daniel Nephin
2017-06-01 14:50:07 -04:00
parent bf22fc6781
commit 729d07a371
2 changed files with 18 additions and 28 deletions

View File

@ -114,8 +114,5 @@ func isFilePath(source string) bool {
// Windows absolute path
first, next := utf8.DecodeRuneInString(source)
if unicode.IsLetter(first) && source[next] == ':' {
return true
}
return false
return unicode.IsLetter(first) && source[next] == ':'
}