Skip to content

Commit

Permalink
[JENKINS-7798] better not to show the size for directories, I think.
Browse files Browse the repository at this point in the history
  • Loading branch information
kohsuke committed Sep 13, 2011
1 parent 94cbf5b commit 96bc767
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/hudson/model/Run.java
Expand Up @@ -878,7 +878,7 @@ private int addArtifacts( File dir, String path, String pathHref, ArtifactList r
String childPath = path + child;
String childHref = pathHref + Util.rawEncode(child);
File sub = new File(dir, child);
String length = sub.isFile() ? String.valueOf(sub.length()) : "0";
String length = sub.isFile() ? String.valueOf(sub.length()) : "";
boolean collapsed = (children.length==1 && parent!=null);
Artifact a;
if (collapsed) {
Expand Down

0 comments on commit 96bc767

Please sign in to comment.