fix: remove duplicate tier fields in AppMetadata

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Dorian
2026-03-14 03:37:51 +00:00
parent d71bc2a46c
commit 74d205dfe0

View File

@@ -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);