SomeFire commented on a change in pull request #40: IGNITE-9939 BuildObserver UNKNOWN build state handling added
URL:
https://github.com/apache/ignite-teamcity-bot/pull/40#discussion_r229283280
##########
File path: ignite-tc-helper-web/src/main/java/org/apache/ignite/ci/TcHelper.java
##########
@@ -193,61 +216,87 @@ private String generateJiraComment(
Map<String, List<SuiteCurrentStatus>> fails = findFailures(server);
- for (List<SuiteCurrentStatus> suites : fails.values()) {
- for (SuiteCurrentStatus suite : suites) {
- res.append("{color:#d04437}").append(suite.name).append("{color}");
- res.append(" [[tests ").append(suite.failedTests);
+ fails.entrySet().forEach(e -> res.addAll(e.getValue()));
Review comment:
Redundant call `.entrySet()`.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[hidden email]
With regards,
Apache Git Services