summaryrefslogtreecommitdiff
path: root/internal/processing/workers/fromclientapi.go
diff options
context:
space:
mode:
authorLibravatar Daenney <daenney@users.noreply.github.com>2024-04-26 11:31:26 +0200
committerLibravatar GitHub <noreply@github.com>2024-04-26 11:31:26 +0200
commit6c9bc26a6d08a485ef59a001c1ad10cd83040e86 (patch)
tree2214aa4fc5b4ec5f96d34ae1e4154ff88cbda126 /internal/processing/workers/fromclientapi.go
parent[chore] Bump go swagger (#2871) (diff)
downloadgotosocial-6c9bc26a6d08a485ef59a001c1ad10cd83040e86.tar.xz
[chore] Update setting testrig loglevel (#2870)
cmp.Or was introduced in Go 1.22 and picks the first value that's not the zero value for the type. For a string, the zero value is the empty string, which is what os.Getenv will return if the environment variable is not set. That then results in "error" being returned instead. This allows loading an environment variable with a default without having to do the check and write out the conditional.
Diffstat (limited to 'internal/processing/workers/fromclientapi.go')
0 files changed, 0 insertions, 0 deletions