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