Преглед изворни кода

Fix golint nit in term_windows.go

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
Aaron Lehmann пре 10 година
родитељ
комит
35e498beca
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      pkg/term/term_windows.go

+ 2 - 2
pkg/term/term_windows.go

@@ -80,8 +80,8 @@ func SetWinsize(fd uintptr, ws *Winsize) error {
 	}
 	}
 
 
 	// Narrow the sizes to that used by Windows
 	// Narrow the sizes to that used by Windows
-	var width winterm.SHORT = winterm.SHORT(ws.Width)
-	var height winterm.SHORT = winterm.SHORT(ws.Height)
+	width := winterm.SHORT(ws.Width)
+	height := winterm.SHORT(ws.Height)
 
 
 	// Set the dimensions while ensuring they remain within the bounds of the backing console buffer
 	// Set the dimensions while ensuring they remain within the bounds of the backing console buffer
 	// -- Shrinking will always succeed. Growing may push the edges past the buffer boundary. When that occurs,
 	// -- Shrinking will always succeed. Growing may push the edges past the buffer boundary. When that occurs,