API: Apply "golangci-lint" recommendations #5330

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer
2025-11-22 09:25:01 +01:00
parent 264bc78d51
commit 4eac10c9d1
35 changed files with 146 additions and 146 deletions

View File

@@ -18,7 +18,7 @@ import (
)
func TestOAuthRevoke(t *testing.T) {
const tokenPath = "/api/v1/oauth/token"
const tokenPath = "/api/v1/oauth/token" // #nosec G101 test constant, not a credential
const revokePath = "/api/v1/oauth/revoke"
t.Run("ClientSuccessToken", func(t *testing.T) {