mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Revert "Add checking err for IsWindowsClient()"
Signed-off-by: Stefan J. Wernli <swernli@microsoft.com>
This commit is contained in:
parent
f35c4343f3
commit
d0b9c33f71
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ func GetOSVersion() OSVersion {
|
|||
func IsWindowsClient() bool {
|
||||
osviex := &osVersionInfoEx{OSVersionInfoSize: 284}
|
||||
r1, _, err := procGetVersionExW.Call(uintptr(unsafe.Pointer(osviex)))
|
||||
if err != nil || r1 == 0 {
|
||||
if r1 == 0 {
|
||||
logrus.Warnf("GetVersionExW failed - assuming server SKU: %v", err)
|
||||
return false
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue