Commit 3167ba6
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
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
| 180 | + | |
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
| |||
0 commit comments