mirror of https://github.com/docker/docs.git
Merge pull request #15067 from aaronlehmann/term-windows-golint
Fix golint nit in term_windows.go
This commit is contained in:
commit
8ad1d3fec6
|
@ -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)
|
width := winterm.SHORT(ws.Width)
|
||||||
var height winterm.SHORT = winterm.SHORT(ws.Height)
|
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,
|
||||||
|
|
Loading…
Reference in New Issue