1
0
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:
Carlos Esquerdo Bernat 2020-08-03 01:35:08 +02:00 committed by GitHub
parent 0ac30a8d9c
commit 66b3fabeef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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