summaryrefslogtreecommitdiffstats
path: root/source/OSSupport/File.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--source/OSSupport/File.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/OSSupport/File.cpp b/source/OSSupport/File.cpp
index 15a37a36f..bd2670217 100644
--- a/source/OSSupport/File.cpp
+++ b/source/OSSupport/File.cpp
@@ -94,10 +94,9 @@ bool cFile::Open(const AString & iFileName, eMode iMode)
void cFile::Close(void)
{
- ASSERT(IsOpen()); // You should not close file objects that don't have an open file.
-
if (!IsOpen())
{
+ // Closing an unopened file is a legal nop
return;
}