Skip to content

Commit 671b02c

Browse files
authored
remove faulty message when removing previously installed assets from the app directory (#775)
1 parent d38f4f4 commit 671b02c

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

runtime/src/main/java/com/tns/AssetExtractor.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ public void extractAssets(Context context, String inputPath, String outputPath,
2626
try {
2727
delete(new File(outputPath + inputPath));
2828
} catch (IOException e) {
29-
Log.d(LogTag, "Problem occurred while deleting assets from previous app version: " + outputPath + inputPath);
29+
String logTag = "AssetExtraction";
30+
Log.d(logTag, "Problem occurred while deleting assets from previous app version: " + outputPath + inputPath);
3031
}
3132
}
3233

@@ -50,7 +51,6 @@ public void extractAssets(Context context, String inputPath, String outputPath,
5051
private static void delete(File file) throws IOException {
5152
File[] files = file.listFiles();
5253
if (files == null) {
53-
Log.d(LogTag, "Can't remove previously installed assets in " + file.getAbsolutePath());
5454
return;
5555
}
5656

@@ -68,6 +68,4 @@ private static void delete(File file) throws IOException {
6868
throw new IOException();
6969
}
7070
}
71-
72-
private static String LogTag = "JS: AssetExtraction";
73-
}
71+
}

0 commit comments

Comments
 (0)