移除ACache读取后最后一个换行符

This commit is contained in:
zlzw 2023-04-13 10:43:07 +08:00
parent 499b73295d
commit af4176bcb7

View File

@ -161,8 +161,9 @@ public class ACache {
String readString = ""; String readString = "";
String currentLine; String currentLine;
while ((currentLine = in.readLine()) != null) { while ((currentLine = in.readLine()) != null) {
readString += currentLine+"\n"; readString += currentLine + "\n";
} }
readString = readString.substring(0, readString.length() - 1);
if (!Utils.isDue(readString)) { if (!Utils.isDue(readString)) {
return Utils.clearDateInfo(readString); return Utils.clearDateInfo(readString);
} else { } else {