mirror of
https://github.com/sergi0g/cup.git
synced 2025-11-12 15:13:49 -05:00
Revert a dbg that was accidentally committed
This commit is contained in:
@@ -51,10 +51,7 @@ async fn get_remote_updates(ctx: &Context, client: &Client, refresh: bool) -> Ve
|
|||||||
if let Some(updates) = json["images"].as_array() {
|
if let Some(updates) = json["images"].as_array() {
|
||||||
let mut server_updates: Vec<Update> = updates
|
let mut server_updates: Vec<Update> = updates
|
||||||
.iter()
|
.iter()
|
||||||
.filter_map(|img| match serde_json::from_value(img.clone()) {
|
.filter_map(|img| serde_json::from_value(img.clone()).ok())
|
||||||
Ok(o) => o,
|
|
||||||
Err(e) => {dbg!(e);None}
|
|
||||||
})
|
|
||||||
.collect();
|
.collect();
|
||||||
// Add server origin to each image
|
// Add server origin to each image
|
||||||
for update in &mut server_updates {
|
for update in &mut server_updates {
|
||||||
|
|||||||
Reference in New Issue
Block a user