aboutsummaryrefslogtreecommitdiffstats
path: root/pure-java/sha3sum.java
diff options
context:
space:
mode:
Diffstat (limited to 'pure-java/sha3sum.java')
-rw-r--r--pure-java/sha3sum.java8
1 files changed, 2 insertions, 6 deletions
diff --git a/pure-java/sha3sum.java b/pure-java/sha3sum.java
index 22427a5..000a57f 100644
--- a/pure-java/sha3sum.java
+++ b/pure-java/sha3sum.java
@@ -333,12 +333,8 @@ public class sha3sum
String filename;
for (int f = 0; f < fptr; f++)
- { if (((filename = files[f]) == null) && (stdin != null))
- { System.out.write(stdin);
- continue;
- }
- String rc = "";
- String fn = filename == null ? "/dev/stdin" : filename;
+ { String rc = "";
+ String fn = (filename = files[f]) == null ? "/dev/stdin" : filename;
InputStream file = null;
try
{