Skip to content

Commit 988462e

Browse files
webwornclaude
andcommitted
fix: Rewrite JSON construction to avoid clang-format version differences
- Replace multi-line JSON initializer with explicit assignment - Avoid clang-format version inconsistencies between local and CI - Ensure consistent formatting across all clang-format versions - Resolve persistent CI code quality analysis failures 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent fa9fcfe commit 988462e

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

src/tools/heat_transfer_tool.cpp

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -179,12 +179,16 @@ std::vector<json> HeatTransferTool::formatResults(const HeatTransferInput& input
179179

180180
// Add warning if OpenFOAM failed
181181
if (!results.success && !results.errorMessage.empty()) {
182-
content.push_back(
183-
json{{"type", "text"},
184-
{"text",
185-
"⚠️ OpenFOAM simulation failed, but theoretical calculations were provided."}});
186-
content.push_back(
187-
json{{"type", "text"}, {"text", "Error details: " + results.errorMessage}});
182+
json warning;
183+
warning["type"] = "text";
184+
warning["text"] =
185+
"⚠️ OpenFOAM simulation failed, but theoretical calculations were provided.";
186+
content.push_back(warning);
187+
188+
json error;
189+
error["type"] = "text";
190+
error["text"] = "Error details: " + results.errorMessage;
191+
content.push_back(error);
188192
}
189193

190194
// JSON resource with detailed results

0 commit comments

Comments
 (0)