diff --git a/vlib/log/log.v b/vlib/log/log.v index 4606f13ba9..8b9ea7c602 100644 --- a/vlib/log/log.v +++ b/vlib/log/log.v @@ -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