Commit 6d48c78
committed
refactor: streamline input handling in MetadataLookup method
- Updated the MetadataLookup method to utilize a switch statement for improved clarity in determining the lookup strategy based on input format.
- Simplified the logic for handling canonical, email, and username lookups, enhancing code readability and maintainability.
Jira Ticket: https://linuxfoundation.atlassian.net/browse/LFXV2-499
Generated with [Cursor](https://cursor.com/)
Signed-off-by: Mauricio Zanetti Salomao <mauriciozanetti86@gmail.com>1 parent 72dcf4a commit 6d48c78
1 file changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
232 | | - | |
| 232 | + | |
| 233 | + | |
233 | 234 | | |
234 | 235 | | |
235 | 236 | | |
236 | 237 | | |
237 | 238 | | |
238 | 239 | | |
239 | | - | |
| 240 | + | |
240 | 241 | | |
241 | 242 | | |
242 | 243 | | |
243 | 244 | | |
244 | 245 | | |
245 | 246 | | |
246 | | - | |
| 247 | + | |
247 | 248 | | |
248 | 249 | | |
249 | 250 | | |
| |||
0 commit comments