style: streamline authentication error handling in config validation

- Simplify authentication error message in config validation

Signed-off-by: appleboy <appleboy.tw@gmail.com>
This commit is contained in:
appleboy
2025-12-27 11:23:25 +08:00
parent 95a5eb125f
commit 1fbf3e5cd6
+1 -1
View File
@@ -94,7 +94,7 @@ func (p Plugin) validateConfig() error {
hasRemoteToken := p.RemoteToken != ""
if !hasUserAuth && !hasRemoteToken {
return errors.New("authentication required: provide either (user + token) or remote-token")
return errors.New("authentication required")
}
return nil