From 487168c049bf5f848851f8aacbd3a485ca4f3af7 Mon Sep 17 00:00:00 2001 From: zhangwei Date: Mon, 30 Sep 2019 16:29:07 +0800 Subject: [PATCH] Delete useless variables (#922) --- .../src/main/java/cn/escheduler/server/rpc/LoggerServer.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/escheduler-server/src/main/java/cn/escheduler/server/rpc/LoggerServer.java b/escheduler-server/src/main/java/cn/escheduler/server/rpc/LoggerServer.java index 1dde113545..19fae81b56 100644 --- a/escheduler-server/src/main/java/cn/escheduler/server/rpc/LoggerServer.java +++ b/escheduler-server/src/main/java/cn/escheduler/server/rpc/LoggerServer.java @@ -98,7 +98,6 @@ public class LoggerServer { request.getLimit()); List list = readFile(request.getPath(), request.getSkipLineNum(), request.getLimit()); StringBuilder sb = new StringBuilder(); - boolean errorLineFlag = false; for (String line : list){ sb.append(line + "\r\n"); } @@ -196,7 +195,6 @@ public class LoggerServer { StringBuilder sb = new StringBuilder(); try { br = new BufferedReader(new InputStreamReader(new FileInputStream(path))); - boolean errorLineFlag = false; while ((line = br.readLine()) != null){ sb.append(line + "\r\n"); }