Skip to content
Permalink
Browse files
webrev: not all commits changes files
Reviewed-by: rwestberg
  • Loading branch information
edvbld committed Aug 31, 2020
1 parent 0e4356a commit b028725b16cdda30c579b957c979ae53691f82ca
Showing with 1 addition and 1 deletion.
  1. +1 −1 webrev/src/main/java/org/openjdk/skara/webrev/Webrev.java
@@ -296,7 +296,7 @@ private void generateJSON(Diff diff, Hash tailEnd, Hash head) throws IOException
JSON.object().put("message", String.join("\n", commit.message()))
);
var filesArray = JSON.array();
for (var path : pathsPerCommit.get(commit.hash())) {
for (var path : pathsPerCommit.getOrDefault(commit.hash(), List.of())) {
filesArray.add(JSON.object().put("filename", path.toString()));
}
c.put("files", filesArray);

1 comment on commit b028725

@bridgekeeper
Copy link

@bridgekeeper bridgekeeper bot commented on b028725 Aug 31, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.