From ee09d35e3cc6be60f4fa424191ef6ef79d566ce3 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 17 Jun 2013 14:42:00 +0200 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- pure-java/sha3sum.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'pure-java') 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 { -- cgit v1.2.3-70-g09d2