Skip to content

Commit

Permalink
fix: replaced 'evts.size() > 0' with '!evts.isEmpty()' in WebServerEv…
Browse files Browse the repository at this point in the history
…entCollector

Signed-off-by: jpcairesf <jpcairesf@gmail.com>
  • Loading branch information
jpcairesf committed Jul 25, 2024
1 parent d000d3f commit 7873439
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public void assertEventsRecordedInOrder(String... expectedEvents) {
LinkedList<String> evts = new LinkedList<>(this.events);
for (String exp : expectedEvents) {
boolean found = false;
while (!found && evts.size() > 0) {
while (!found && !evts.isEmpty()) {
String ev = evts.pop();
found = exp.equals(ev);
}
Expand Down

0 comments on commit 7873439

Please sign in to comment.