Skip to content

Commit fb20065

Browse files
Apply suggestion from @Copilot
Co-authored-by: Copilot <[email protected]>
1 parent 3ad5ef2 commit fb20065

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/misra/src/rules/RULE-9-4-2/AppropriateStructureOfSwitchStatement.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ where
2828
exists(Stmt initializer | initializer = switch.getInitialization() |
2929
not initializer instanceof DeclStmt
3030
) and
31-
message = "contains a statement that that is not a simple declaration"
31+
message = "contains a statement that is not a simple declaration"
3232
or
3333
/* 2. There is a switch case label that does not lead a branch (i.e. a switch case label is nested). */
3434
exists(SwitchCase case | case = switch.getASwitchCase() | case instanceof NestedSwitchCase) and

0 commit comments

Comments
 (0)