Commit 08a794f
committed
Extract JSONDecoder configuration into shared helper method
Added private helper method decodePlaylists(from:) to avoid duplicating
JSONDecoder instantiation and configuration across multiple functions.
This improves maintainability by centralizing the decoder configuration
(.iso8601 dateDecodingStrategy) in a single location.
Updated playlists(limit:) and madeForYouPlaylists() to use the new helper.1 parent fbd9649 commit 08a794f
1 file changed
+10
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
| 245 | + | |
249 | 246 | | |
250 | 247 | | |
251 | 248 | | |
252 | | - | |
| 249 | + | |
253 | 250 | | |
254 | 251 | | |
255 | 252 | | |
256 | | - | |
257 | | - | |
| 253 | + | |
258 | 254 | | |
259 | 255 | | |
260 | 256 | | |
| |||
295 | 291 | | |
296 | 292 | | |
297 | 293 | | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
| 294 | + | |
303 | 295 | | |
304 | 296 | | |
305 | 297 | | |
| |||
314 | 306 | | |
315 | 307 | | |
316 | 308 | | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
317 | 315 | | |
318 | 316 | | |
319 | 317 | | |
| |||
0 commit comments