Skip to content

Commit 1559b92

Browse files
ddamkeddamke
authored andcommitted
fox not Delimiter to only show when there are more than 2 notes
1 parent c577d71 commit 1559b92

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/main/java/de/doubleslash/keeptime/view/ProjectReport.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
import static de.doubleslash.keeptime.view.ReportController.NOTE_DELIMETER;
2020

2121
import java.lang.invoke.MethodHandles;
22+
import java.util.ArrayList;
23+
import java.util.List;
2224

2325
import org.slf4j.Logger;
2426
import org.slf4j.LoggerFactory;
@@ -40,15 +42,13 @@ public ProjectReport(final int size) {
4042
}
4143

4244
public void appendToWorkNotes(final String currentWorkNote) {
43-
this.numberOfNotes++;
44-
if (!currentWorkNote.isEmpty()) {
45-
if (this.numberOfNotes > 1) {
45+
this.sb.append(currentWorkNote.trim());
46+
if(!currentWorkNote.isEmpty()){
47+
if(this.size>1) {
4648
this.sb.append(NOTE_DELIMETER);
4749
}
48-
this.sb.append(currentWorkNote.trim());
49-
} else {
50-
LOG.debug("Skipping empty note.");
5150
}
51+
this.numberOfNotes++;
5252
}
5353

5454
public int getNumberOfNotes() {

0 commit comments

Comments
 (0)