fix: remove duplicate tier fields in AppMetadata
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
176336b555
commit
49b7c400c1
@ -292,7 +292,6 @@ struct AppMetadata {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Get the app tier: "core", "recommended", or "optional".
|
/// Get the app tier: "core", "recommended", or "optional".
|
||||||
fn get_app_tier(app_id: &str) -> &'static str {
|
|
||||||
match app_id {
|
match app_id {
|
||||||
// Core: required for basic Bitcoin node
|
// Core: required for basic Bitcoin node
|
||||||
"bitcoin" | "bitcoin-core" | "bitcoin-knots" => "core",
|
"bitcoin" | "bitcoin-core" | "bitcoin-knots" => "core",
|
||||||
@ -322,7 +321,6 @@ fn get_app_metadata(app_id: &str) -> AppMetadata {
|
|||||||
icon: "/assets/img/app-icons/bitcoin-knots.webp".to_string(),
|
icon: "/assets/img/app-icons/bitcoin-knots.webp".to_string(),
|
||||||
repo: "https://github.com/bitcoinknots/bitcoin".to_string(),
|
repo: "https://github.com/bitcoinknots/bitcoin".to_string(),
|
||||||
tier: "",
|
tier: "",
|
||||||
tier: "",
|
|
||||||
},
|
},
|
||||||
"btcpay" | "btcpay-server" | "btcpayserver" => AppMetadata {
|
"btcpay" | "btcpay-server" | "btcpayserver" => AppMetadata {
|
||||||
title: "BTCPay Server".to_string(),
|
title: "BTCPay Server".to_string(),
|
||||||
@ -330,7 +328,6 @@ fn get_app_metadata(app_id: &str) -> AppMetadata {
|
|||||||
icon: "/assets/img/app-icons/btcpay-server.png".to_string(),
|
icon: "/assets/img/app-icons/btcpay-server.png".to_string(),
|
||||||
repo: "https://github.com/btcpayserver/btcpayserver".to_string(),
|
repo: "https://github.com/btcpayserver/btcpayserver".to_string(),
|
||||||
tier: "",
|
tier: "",
|
||||||
tier,
|
|
||||||
},
|
},
|
||||||
"homeassistant" | "home-assistant" => AppMetadata {
|
"homeassistant" | "home-assistant" => AppMetadata {
|
||||||
title: "Home Assistant".to_string(),
|
title: "Home Assistant".to_string(),
|
||||||
@ -576,7 +573,6 @@ fn get_app_metadata(app_id: &str) -> AppMetadata {
|
|||||||
icon: "/assets/img/favico.png".to_string(),
|
icon: "/assets/img/favico.png".to_string(),
|
||||||
repo: "#".to_string(),
|
repo: "#".to_string(),
|
||||||
tier: "",
|
tier: "",
|
||||||
tier: "",
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
meta.tier = get_app_tier(app_id);
|
meta.tier = get_app_tier(app_id);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user