Skip to content

Commit de2a85d

Browse files
committed
Inline variable
1 parent 24eba42 commit de2a85d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/httpserver/file/PathExaminer.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ public Path getFullPath(Path root, String requestPathString) {
1919
public Path getPath(String input) {
2020
String[] parts;
2121
parts = input.split("/");
22-
Path path = Paths.get("/", parts);
23-
return path;
22+
return Paths.get("/", parts);
2423
}
2524

2625
public boolean pathExists(Path path) {

0 commit comments

Comments
 (0)