MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / IsZero

Method IsZero

pkg/ttnpb/identifiers.go:95–100  ·  view source on GitHub ↗

IsZero returns true if all identifiers have zero-values.

()

Source from the content-addressed store, hash-verified

93
94// IsZero returns true if all identifiers have zero-values.
95func (ids *UserIdentifiers) IsZero() bool {
96 if ids == nil {
97 return true
98 }
99 return ids.GetUserId() == "" && ids.GetEmail() == ""
100}
101
102// IsZero returns true if all identifiers have zero-values.
103func (ids *MACSettingsProfileIdentifiers) IsZero() bool {

Callers

nothing calls this directly

Calls 2

GetUserIdMethod · 0.95
GetEmailMethod · 0.95

Tested by

no test coverage detected