MCPcopy Index your code
hub / github.com/coder/coder / sanitizeDesktopDimension

Function sanitizeDesktopDimension

codersdk/workspacesdk/display.go:178–183  ·  view source on GitHub ↗
(dim int)

Source from the content-addressed store, hash-verified

176}
177
178func sanitizeDesktopDimension(dim int) int {
179 if dim <= 0 {
180 return 1
181 }
182 return dim
183}

Callers 2

NewDesktopGeometryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected