Commit eaabbfa
committed
Refactor token insertion in Vicinity class to simplify duplicate handling
- Replaced the nested loop for checking duplicates with a single extend operation for tokens.
- Improved efficiency by directly appending tokens to the items list, ensuring proper management of duplicates.1 parent 022c7b1 commit eaabbfa
1 file changed
+1
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
| 244 | + | |
249 | 245 | | |
250 | 246 | | |
251 | 247 | | |
| |||
0 commit comments