Skip to content

Commit

Permalink
review: addresses #1178 (comment), part 3
Browse files Browse the repository at this point in the history
  • Loading branch information
dj8yf0μl committed Jun 13, 2024
1 parent 74e4848 commit 8d0c65f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions near-sdk-macros/src/core_impl/contract_metadata/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,7 @@ struct Standard {
impl ContractMetadata {
fn populate(mut self) -> Self {
if self.link.is_none() {
let field_val = std::env::var("NEP330_LINK")
.or(std::env::var("CARGO_PKG_REPOSITORY"))
.unwrap_or(String::from(""));
let field_val = std::env::var("NEP330_LINK").unwrap_or(String::from(""));
if !field_val.is_empty() {
self.link = Some(field_val);
}
Expand Down

0 comments on commit 8d0c65f

Please sign in to comment.