IsEmpty returns true if all fields in the telemetry data are empty.
()
| 620 | |
| 621 | // IsEmpty returns true if all fields in the telemetry data are empty. |
| 622 | func (t *CoderDesktopTelemetry) IsEmpty() bool { |
| 623 | return t.DeviceID == "" && t.DeviceOS == "" && t.CoderDesktopVersion == "" |
| 624 | } |
| 625 | |
| 626 | // IsConnectionError is a convenience function for checking if the source of an |
| 627 | // error is due to a 'connection refused', 'no such host', etc. |
no outgoing calls