Do not panic if there is no text on the line; closes pterodactyl/panel#2369
This commit is contained in:
parent
522c6c17e4
commit
342c3ea565
|
@ -437,8 +437,7 @@ func (f *ConfigurationFile) parsePropertiesFile(path string) error {
|
||||||
scanner := bufio.NewScanner(f2)
|
scanner := bufio.NewScanner(f2)
|
||||||
for scanner.Scan() {
|
for scanner.Scan() {
|
||||||
text := scanner.Text()
|
text := scanner.Text()
|
||||||
|
if len(text) > 0 && text[0] != '#' {
|
||||||
if text[0] != '#' {
|
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user