summaryrefslogtreecommitdiffhomepage
path: root/serialize/json-helper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'serialize/json-helper.cpp')
-rw-r--r--serialize/json-helper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/serialize/json-helper.cpp b/serialize/json-helper.cpp
index d21d48f4..eda628de 100644
--- a/serialize/json-helper.cpp
+++ b/serialize/json-helper.cpp
@@ -11,7 +11,7 @@ static T open_stream(StringView filename)
{
T s;
s.open(filename.data(), mode);
- if (!s.good())
+ if (!s)
{
char errbuf[128];
constexpr auto get_error_string = []<std::size_t N> (char (&buf)[N])