damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit e8d0f1db8dbe17edaf2496da30ae4245158ce527
parent 99b5dc94cbec6d01f483d380eefa8882265f1e51
Author: William Casarin <jb55@jb55.com>
Date:   Sun, 23 Jul 2023 12:12:42 -0700

test: fix some ndb test warnings

Diffstat:
Mnostrdb/Test/NdbTests.swift | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/nostrdb/Test/NdbTests.swift b/nostrdb/Test/NdbTests.swift @@ -36,7 +36,6 @@ final class NdbTests: XCTestCase { XCTAssertEqual(note.tags().count, expected_count) XCTAssertEqual(note.tags().reduce(0, { sum, _ in sum + 1 }), expected_count) - var count = 0 var tags = 0 var total_count_stored = 0 var total_count_iter = 0 @@ -86,7 +85,7 @@ final class NdbTests: XCTestCase { for tag in note.tags() { for elem in tag { print("iter_elem \(elem.string())") - for c in elem { + for _ in elem { char_count += 1 } }