Skip to content

Commit

Permalink
[JENKINS-15497] Fixing incorrect if, where we were comparing the valu…
Browse files Browse the repository at this point in the history
…e with

the key name, while we should use the key value instead.
  • Loading branch information
kinow committed Oct 16, 2012
1 parent 5b7a894 commit 15d48ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/tap4j/plugin/TapResult.java
Expand Up @@ -325,7 +325,7 @@ private String recursivelySearch(Map<String, Object> diagnostics, String parentK
o = diagnostics.get("File-content");
if(o != null && o instanceof String)
return (String)o;
} else if(diagnosticKey.equalsIgnoreCase("file-name") && diagnosticKey.equals(key)) {
} else if(diagnosticKey.equalsIgnoreCase("file-name") && value.equals(key)) {
Object o = diagnostics.get("File-Content");
if(o == null)
o = diagnostics.get("File-content");
Expand Down

0 comments on commit 15d48ef

Please sign in to comment.