Commit d3070b4
[refactor] Replace inline URL construction with getAssetUrl utility
Refactored downloadAsset and downloadMultipleAssets functions to use
the shared getAssetUrl utility instead of duplicating URL construction logic.
Changes:
- Added getAssetUrl import from assetUrlUtil
- Replaced inline api.apiURL construction in downloadAsset (lines 74-77)
- Replaced inline api.apiURL construction in downloadMultipleAssets (lines 112-115)
Benefits:
- Removes code duplication (2 occurrences)
- Centralizes URL construction logic
- Improves maintainability
- Ensures consistent asset type handling
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 65c6e1e commit d3070b4
1 file changed
+5
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
70 | | - | |
71 | | - | |
| 71 | + | |
| 72 | + | |
72 | 73 | | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
| 74 | + | |
77 | 75 | | |
78 | 76 | | |
79 | 77 | | |
| |||
111 | 109 | | |
112 | 110 | | |
113 | 111 | | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
| 112 | + | |
118 | 113 | | |
119 | 114 | | |
120 | 115 | | |
| |||
0 commit comments