Commit 75a0ac1
authored
refactor: refactor initialization and simplify logic for clarity (#102)
- Update comments to clarify the purpose of code blocks
- Simplify the initialization of the `skip` map
- Consolidate the logger output initialization into a single line
- Refactor URL query handling to use a more concise format
- Simplify the logic for skipping paths based on regex matches
- Ensure the `track` variable is properly scoped and used
- Break down the logger context initialization into smaller steps for clarity
Signed-off-by: appleboy <[email protected]>1 parent 56e87fc commit 75a0ac1
1 file changed
+18
-26
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
| 90 | + | |
91 | 91 | | |
92 | | - | |
93 | 92 | | |
94 | 93 | | |
95 | 94 | | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
102 | 99 | | |
103 | 100 | | |
| 101 | + | |
104 | 102 | | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
| 103 | + | |
111 | 104 | | |
112 | 105 | | |
113 | 106 | | |
| 107 | + | |
114 | 108 | | |
115 | 109 | | |
116 | 110 | | |
| |||
119 | 113 | | |
120 | 114 | | |
121 | 115 | | |
122 | | - | |
123 | | - | |
124 | | - | |
| 116 | + | |
| 117 | + | |
125 | 118 | | |
126 | 119 | | |
127 | 120 | | |
128 | | - | |
129 | 121 | | |
130 | 122 | | |
131 | 123 | | |
132 | 124 | | |
133 | | - | |
| 125 | + | |
134 | 126 | | |
135 | | - | |
136 | | - | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
137 | 130 | | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | 131 | | |
142 | 132 | | |
143 | 133 | | |
144 | | - | |
145 | 134 | | |
146 | 135 | | |
147 | 136 | | |
148 | 137 | | |
149 | 138 | | |
150 | 139 | | |
151 | | - | |
| 140 | + | |
| 141 | + | |
152 | 142 | | |
153 | 143 | | |
154 | 144 | | |
| |||
179 | 169 | | |
180 | 170 | | |
181 | 171 | | |
| 172 | + | |
182 | 173 | | |
183 | 174 | | |
184 | 175 | | |
| 176 | + | |
185 | 177 | | |
186 | 178 | | |
187 | 179 | | |
| |||
0 commit comments