MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / nullString

Function nullString

internal/identity/screening.go:164–169  ·  view source on GitHub ↗

nullString returns nil for empty strings so they persist as SQL NULL.

(s string)

Source from the content-addressed store, hash-verified

162
163// nullString returns nil for empty strings so they persist as SQL NULL.
164func nullString(s string) any {
165 if s == "" {
166 return nil
167 }
168 return s
169}
170
171// nullJSON returns nil for empty/zero JSON so it persists as SQL NULL.
172func nullJSON(j json.RawMessage) any {

Callers 1

CreateProtectionEventMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected