MCPcopy
hub / github.com/docker/compose / shouldDisplay

Method shouldDisplay

cmd/formatter/shortcut.go:46–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44}
45
46func (ke *KeyboardError) shouldDisplay() bool {
47 return ke.err != nil && int(time.Since(ke.timeStart).Seconds()) < DISPLAY_ERROR_TIME
48}
49
50func (ke *KeyboardError) printError(height int, info string) {
51 if ke.shouldDisplay() {

Callers 2

printErrorMethod · 0.95
createBufferMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected