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