MCPcopy Create free account
hub / github.com/coder/coder / IsEmpty

Method IsEmpty

codersdk/client.go:622–624  ·  view source on GitHub ↗

IsEmpty returns true if all fields in the telemetry data are empty.

()

Source from the content-addressed store, hash-verified

620
621// IsEmpty returns true if all fields in the telemetry data are empty.
622func (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.

Callers 2

startMethod · 0.95
TestWriteSecretFilesFunction · 0.45

Calls

no outgoing calls

Tested by 1

TestWriteSecretFilesFunction · 0.36