Skip to content

Commit 78032e6

Browse files
committed
parse file by specifying path
1 parent c203ede commit 78032e6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/com/github/odiszapc/nginxparser/NgxConfig.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ public class NgxConfig extends NgxBlock {
5151
*/
5252
public static NgxConfig read(String path) throws IOException, ParseException {
5353
FileInputStream input = new FileInputStream(path);
54-
NginxConfigParser parser = new NginxConfigParser(input);
55-
return parser.parse();
54+
return read(input);
5655
}
5756

5857
public static NgxConfig read(InputStream in) throws IOException {

0 commit comments

Comments
 (0)