Skip to content

Commit

Permalink
Clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
FongMi committed Jul 26, 2023
1 parent 38ed224 commit 5039ac4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/src/main/java/com/fongmi/android/tv/server/Nano.java
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ private Response doDelFolder(Map<String, String> params) {
}

private String getParent(File root) {
return root.equals(Path.root()) ? "." : root.getParent().replace(Path.rootPath() + File.separator, "").replace(Path.rootPath(), "");
return root.equals(Path.root()) ? "." : root.getParent().replace(Path.rootPath(), "");
}

private String listFiles(File root) {
Expand Down
2 changes: 1 addition & 1 deletion catvod/src/main/java/com/github/catvod/utils/Path.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
public class Path {

private static File check(File file) {
if (!file.exists()) file.mkdir();
if (!file.exists()) file.mkdirs();
return file;
}

Expand Down

0 comments on commit 5039ac4

Please sign in to comment.