Commit 01a1f02
committed
fix: avoid shadowing of 'fmt' in regexError helper
Renamed the parameter 'fmt' to 'pattern' in pkg/internal/validation/dns.go to avoid shadowing
the standard library 'fmt' package. This improves code clarity and prevents potential issues
when using formatting functions like fmt.Sprintf within the same scope.1 parent 85778bc commit 01a1f02
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
| 102 | + | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
| 113 | + | |
114 | 114 | | |
115 | 115 | | |
0 commit comments