From bd6aa6c5e9f104170d73e75ba390870f067f9c42 Mon Sep 17 00:00:00 2001 From: Kathryn Baldauf Date: Thu, 28 Apr 2022 16:33:57 -0700 Subject: [PATCH] Remove check for osversion in windows matcher Signed-off-by: Kathryn Baldauf --- platforms/defaults_windows.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/platforms/defaults_windows.go b/platforms/defaults_windows.go index c1aaf72ca8ee..d3b828b3ba66 100644 --- a/platforms/defaults_windows.go +++ b/platforms/defaults_windows.go @@ -47,11 +47,7 @@ type matchComparer struct { // Match matches platform with the same windows major, minor // and build version. func (m matchComparer) Match(p imagespec.Platform) bool { - if m.defaults.Match(p) { - // TODO(windows): Figure out whether OSVersion is deprecated. - return strings.HasPrefix(p.OSVersion, m.osVersionPrefix) - } - return false + return m.defaults.Match(p) } // Less sorts matched platforms in front of other platforms.