mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-03-30 00:33:35 +00:00
fix: ESLint errors in _sanitizeCacheControl — strict equality and curly braces
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -525,7 +525,9 @@ class BedrockRelayService {
|
||||
// Bedrock only supports { type: "ephemeral" } — extra fields like "scope"
|
||||
// (added in Claude Code v2.1.38+) cause ValidationException.
|
||||
_sanitizeCacheControl(obj) {
|
||||
if (obj == null || typeof obj !== 'object') return obj
|
||||
if (obj === null || obj === undefined || typeof obj !== 'object') {
|
||||
return obj
|
||||
}
|
||||
|
||||
if (Array.isArray(obj)) {
|
||||
obj.forEach((item) => this._sanitizeCacheControl(item))
|
||||
|
||||
Reference in New Issue
Block a user