From 640d7f1e02c7ed6141c2b718db39c3829f2b0427 Mon Sep 17 00:00:00 2001 From: Catfriend1 Date: Sat, 25 Aug 2018 23:30:47 +0200 Subject: [PATCH] Remove unused import (#35) --- .../nutomic/syncthingandroid/service/SyncthingRunnable.java | 3 ++- .../main/java/com/nutomic/syncthingandroid/util/ConfigXml.java | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/nutomic/syncthingandroid/service/SyncthingRunnable.java b/app/src/main/java/com/nutomic/syncthingandroid/service/SyncthingRunnable.java index 6c873e06..742fb415 100644 --- a/app/src/main/java/com/nutomic/syncthingandroid/service/SyncthingRunnable.java +++ b/app/src/main/java/com/nutomic/syncthingandroid/service/SyncthingRunnable.java @@ -416,8 +416,9 @@ public class SyncthingRunnable implements Runnable { * Only keep last {@link #LOG_FILE_MAX_LINES} lines in log file, to avoid bloat. */ private void trimLogFile() { - if (!mLogFile.exists()) + if (!mLogFile.exists()) { return; + } try { LineNumberReader lnr = new LineNumberReader(new FileReader(mLogFile)); diff --git a/app/src/main/java/com/nutomic/syncthingandroid/util/ConfigXml.java b/app/src/main/java/com/nutomic/syncthingandroid/util/ConfigXml.java index b4259a27..9b934f69 100644 --- a/app/src/main/java/com/nutomic/syncthingandroid/util/ConfigXml.java +++ b/app/src/main/java/com/nutomic/syncthingandroid/util/ConfigXml.java @@ -19,7 +19,6 @@ import org.w3c.dom.Node; import org.w3c.dom.NodeList; import org.xml.sax.SAXException; -import java.io.BufferedReader; import java.io.File; import java.io.InputStreamReader; import java.io.IOException;