mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-17 21:29:19 +02:00
refactor(sonar): merge collapsible nested if statements (cpp:S1066)
Comments that preceded the inner if are kept above the merged statement.
This commit is contained in:
@@ -195,12 +195,10 @@ bool TEventLauncher::check_activation() {
|
||||
else {
|
||||
// jeśli nie cykliczny, to sprawdzić czas
|
||||
if( simulation::Time.data().wHour == iHour ) {
|
||||
if( simulation::Time.data().wMinute == iMinute ) {
|
||||
// zgodność czasu uruchomienia
|
||||
if( UpdatedTime < 10 ) {
|
||||
UpdatedTime = 20; // czas do kolejnego wyzwolenia?
|
||||
bCond = true;
|
||||
}
|
||||
// zgodność czasu uruchomienia
|
||||
if (simulation::Time.data().wMinute == iMinute && UpdatedTime < 10) {
|
||||
UpdatedTime = 20; // czas do kolejnego wyzwolenia?
|
||||
bCond = true;
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user