Skip to content

Commit b24aa9c

Browse files
author
MarcoFalke
committed
Merge bitcoin/bitcoin#24095: util: Fix mis-swapped prettyIndent and indentLevel arguments
f251141 util: Fix mis-swapped `prettyIndent` and `indentLevel` arguments (Hennadii Stepanov) Pull request description: On master d0bf9bb: ``` $ cat settings.json { "wallet": [ "210803d" ] } ``` With this PR: ``` $ cat settings.json { "wallet": [ "210803d" ] } ``` ACKs for top commit: ryanofsky: Code review ACK f251141. Nice catch! Tree-SHA512: 1c315c807a070039c05a77f4e8855011d468b9aeb141e4fa3b1e1aaaab252e3831e8bdfe0caddf7704a00492799022f761f6d21a047c5bf75cdbcc96f04fc04e
2 parents d0bf9bb + f251141 commit b24aa9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/settings.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ bool WriteSettings(const fs::path& path,
112112
errors.emplace_back(strprintf("Error: Unable to open settings file %s for writing", fs::PathToString(path)));
113113
return false;
114114
}
115-
file << out.write(/* prettyIndent= */ 1, /* indentLevel= */ 4) << std::endl;
115+
file << out.write(/* prettyIndent= */ 4, /* indentLevel= */ 1) << std::endl;
116116
file.close();
117117
return true;
118118
}

0 commit comments

Comments
 (0)