From 2466c048e26c09461b4ced2a9dfcf6d87f0e1323 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 3 Dec 2021 13:37:42 +0000 Subject: Consistently use `!foo` instead of `foo == NULL`. --- src/logger.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/logger.cpp') diff --git a/src/logger.cpp b/src/logger.cpp index d6c571af8..3c0985841 100644 --- a/src/logger.cpp +++ b/src/logger.cpp @@ -299,7 +299,7 @@ FileWriter::FileWriter(FILE* logfile, unsigned int flushcount) void FileWriter::WriteLogLine(const std::string &line) { - if (log == NULL) + if (!log) return; // XXX: For now, just return. Don't throw an exception. It'd be nice to find out if this is happening, but I'm terrified of breaking so close to final release. -- w00t // throw CoreException("FileWriter::WriteLogLine called with a closed logfile"); -- cgit v1.3.1-10-gc9f91