log: avoid the deprecated .is_opened() method (#6039)

pull/6047/head
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
1 changed files with 1 additions and 1 deletions

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