mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
parser: disallow statements after a return, branch check $if, $else, switch, and loops correctly
This commit is contained in:
committed by
Alexander Medvednikov
parent
58b52aa9fb
commit
1864e92ff4
@@ -39,7 +39,6 @@ fn (l Log) log_file(s string, e string) {
|
||||
filename := l.output
|
||||
f := os.open_append(l.output) or {
|
||||
panic('error reading file $filename')
|
||||
return
|
||||
}
|
||||
timestamp := time.now().format_ss()
|
||||
f.writeln('$timestamp [$e] $s')
|
||||
|
||||
Reference in New Issue
Block a user