mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
log: avoid the deprecated .is_opened() method (#6039)
This commit is contained in:
parent
0ac30a8d9c
commit
66b3fabeef
@ -59,7 +59,7 @@ pub fn (mut l Log) set_output_label(label string) {
|
||||
}
|
||||
|
||||
pub fn (mut l Log) set_output_path(output_file_path string) {
|
||||
if l.ofile.is_opened() {
|
||||
if l.ofile.is_opened {
|
||||
l.ofile.close()
|
||||
}
|
||||
l.output_to_file = true
|
||||
|
Loading…
Reference in New Issue
Block a user