From 173a627dec90e22011be767979cbd073232ab3b5 Mon Sep 17 00:00:00 2001 From: Blaine Heffron Date: Fri, 7 Jun 2024 09:10:46 -0400 Subject: [PATCH] clippy --- cmd/crates/soroban-spec-typescript/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/crates/soroban-spec-typescript/src/lib.rs b/cmd/crates/soroban-spec-typescript/src/lib.rs index ee6cc3428..94b5bb192 100644 --- a/cmd/crates/soroban-spec-typescript/src/lib.rs +++ b/cmd/crates/soroban-spec-typescript/src/lib.rs @@ -252,14 +252,14 @@ pub fn entry_to_method_type(entry: &Entry) -> String { if c.doc.is_empty() { format!( "{} {}: {{message:\"{}\"}}", - if i != 0 { "\n" } else { "" }, + if i == 0 { "" } else { "\n" }, c.value, c.name ) } else { format!( "{}{} {}: {{message:\"{}\"}}", - if i != 0 { "\n" } else { "" }, + if i == 0 { "" } else { "\n" }, doc_to_ts_doc(&c.doc, None, 1), c.value, c.name