Skip to content

Commit 1af03a1

Browse files
authored
Clang-Tidy: Fix Diagnostics Branch (#4731)
Keep for readability as is.
1 parent ac2e649 commit 1af03a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Source/Diagnostics/WarpXOpenPMD.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ namespace detail
317317
{openPMD::UnitDimension::I, 1.}};
318318
} else if( record_name == "mass" ) {
319319
return {{openPMD::UnitDimension::M, 1.}};
320-
} else if( record_name == "weighting" ) {
320+
} else if( record_name == "weighting" ) { // NOLINT(bugprone-branch-clone)
321321
#if defined(WARPX_DIM_1D_Z)
322322
return {{openPMD::UnitDimension::L, -2.}};
323323
#elif defined(WARPX_DIM_XZ)
@@ -334,7 +334,7 @@ namespace detail
334334
return {{openPMD::UnitDimension::M, 1.},
335335
{openPMD::UnitDimension::I, -1.},
336336
{openPMD::UnitDimension::T, -2.}};
337-
} else {
337+
} else { // NOLINT(bugprone-branch-clone)
338338
return {};
339339
}
340340
}

0 commit comments

Comments
 (0)