From 24a453f338430ba1456e0545dd87cdfc559915a8 Mon Sep 17 00:00:00 2001 From: Gravit Date: Sat, 27 Apr 2019 20:27:22 +0700 Subject: [PATCH] =?UTF-8?q?[FIX]=20=D0=94=D0=BE=D0=BF=D0=BE=D0=BB=D0=BD?= =?UTF-8?q?=D0=B8=D1=82=D0=B5=D0=BB=D1=8C=D0=BD=D0=BE=D0=B5=20=D0=BB=D0=BE?= =?UTF-8?q?=D0=B3=D0=B3=D0=B8=D1=80=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5=20?= =?UTF-8?q?=D0=B2=20verifyHDir?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/ru/gravit/launcher/client/ClientLauncher.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Launcher/src/main/java/ru/gravit/launcher/client/ClientLauncher.java b/Launcher/src/main/java/ru/gravit/launcher/client/ClientLauncher.java index 686df2cc..274a2c41 100644 --- a/Launcher/src/main/java/ru/gravit/launcher/client/ClientLauncher.java +++ b/Launcher/src/main/java/ru/gravit/launcher/client/ClientLauncher.java @@ -545,12 +545,12 @@ public static void verifyHDir(Path dir, HashedDir hdir, FileNameMatcher matcher, { AtomicBoolean isFoundFile = new AtomicBoolean(false); diff.extra.walk(File.separator, (e,k,v) -> { - if(v.getType().equals(HashedEntry.Type.FILE)) isFoundFile.set(true); - LogHelper.error("Extra %s", e); + if(v.getType().equals(HashedEntry.Type.FILE)) { LogHelper.error("Extra file %s", e); isFoundFile.set(true); } + else LogHelper.error("Extra %s", e); }); diff.mismatch.walk(File.separator, (e,k,v) -> { - if(v.getType().equals(HashedEntry.Type.FILE)) isFoundFile.set(true); - LogHelper.error("Mismatch %s", e); + if(v.getType().equals(HashedEntry.Type.FILE)) { LogHelper.error("Mismatch file %s", e); isFoundFile.set(true); } + else LogHelper.error("Mismatch %s", e); }); if(isFoundFile.get()) throw new SecurityException(String.format("Forbidden modification: '%s'", IOHelper.getFileName(dir))); }