diff --git a/src/commands/common.zig b/src/commands/common.zig index cfe4d89..ae21541 100644 --- a/src/commands/common.zig +++ b/src/commands/common.zig @@ -325,19 +325,15 @@ pub fn loadPortfolioPrices( symbol_progress.callback(), ); - // Print summary - const total = symbol_progress.grand_total; - const from_cache = result.cached_count; - const from_server = result.server_synced_count; - const from_provider = result.provider_fetched_count; - const failed = result.failed_count; - const stale = result.stale_count; - - if (from_cache == total) { - printLoadSummary(io, color, .{ .total = total, .from_cache = from_cache, .from_server = from_server, .from_provider = from_provider, .failed = failed, .stale = stale }); - } else { - printLoadSummary(io, color, .{ .total = total, .from_cache = from_cache, .from_server = from_server, .from_provider = from_provider, .failed = failed, .stale = stale }); - } + // `printLoadSummaryImpl` picks the wording (all cached, some failed, ...). + printLoadSummary(io, color, .{ + .total = symbol_progress.grand_total, + .from_cache = result.cached_count, + .from_server = result.server_synced_count, + .from_provider = result.provider_fetched_count, + .failed = result.failed_count, + .stale = result.stale_count, + }); return result; }