Commit 54d8083
committed
Fix forcetypeassert linter violations in data_source_test.go
Unchecked type assertions (x.(T)) are flagged by the forcetypeassert
linter enabled in .golangci.yml. Use the comma-ok pattern with
require.True, matching the pattern already used in resource_helpers_test.go.
https://claude.ai/code/session_01RGuqEJbEyQYff6DAr5nst11 parent 702842c commit 54d8083
1 file changed
Lines changed: 12 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
68 | 76 | | |
69 | 77 | | |
70 | 78 | | |
| |||
0 commit comments