Skip to content

Commit a41e211

Browse files
committed
don't print counter if last sequence is empty
1 parent 6c70981 commit a41e211

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/countfa.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ void do_countfa(istream &input) {
7777

7878
if (!name.empty()) {
7979
cout << name << endl;
80-
cout << counter << endl;
80+
if (counter > 0) cout << counter << endl;
8181
}
8282

8383
}

0 commit comments

Comments
 (0)