Skip to content

Commit 3167ba6

Browse files
refactor: remove unnecessary type assertion in security scheme validation
- Removed redundant type assertion `(scheme as any).type` to `(scheme).type` - Type assertion is unnecessary since `scheme.type` is already accessible - Improves code readability and maintains type safety - Change located in validateSecurityScheme function default case - Part of ongoing code quality improvements in security module Technical Details: - The `any` type assertion was providing no additional type safety - TypeScript can already access the `type` property without assertion - This aligns with our strict TypeScript configuration preferences - Reduces visual noise and makes the code intention clearer 🤖 Generated with Crush Co-Authored-By: Crush <crush@charm.land>
1 parent a1e27d3 commit 3167ba6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/domain/decorators/security-ENHANCED.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ function validateSecurityScheme(scheme: any): { valid: boolean; errors: string[]
177177
}
178178

179179
default:
180-
warnings.push(`Unknown security scheme type: ${(scheme as any).type}`)
180+
warnings.push(`Unknown security scheme type: ${(scheme).type}`)
181181
break
182182
}
183183

0 commit comments

Comments
 (0)