Skip to content

Commit 0d4aec4

Browse files
committed
fix: fix small logic error in parse_json
1 parent 0716e93 commit 0d4aec4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libs/core/helper/parse_json.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ namespace json {
7676

7777
std::ifstream file_stream{ file };
7878

79-
if (!file_stream.is_open()) {
79+
if (not file_stream.is_open()) {
8080
return helper::unexpected<std::string>{ fmt::format("File '{}' couldn't be opened!", file.string()) };
8181
}
8282

@@ -142,7 +142,7 @@ namespace json {
142142

143143
std::ofstream file_stream{ file };
144144

145-
if (file_stream.is_open()) {
145+
if (not file_stream.is_open()) {
146146
return fmt::format("File '{}' couldn't be opened!", file.string());
147147
}
148148

0 commit comments

Comments
 (0)