mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-28 00:03:14 +08:00
refactor: Use else if instead of nested else-if conditions
Replaces nested else-if with else if for consistency and readability. No functional changes. Signed-off-by: Vysochyn, Illia <illia.vysochyn@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
ed15408592
commit
f4bd4e603d
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2021-2023 Intel Corporation
|
||||
* Copyright (C) 2021-2025 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -24,10 +24,8 @@ struct StreamPropertyType {
|
||||
value = newValue;
|
||||
isDirty = true;
|
||||
}
|
||||
} else {
|
||||
if (newValue != initValue) {
|
||||
value = newValue;
|
||||
}
|
||||
} else if (newValue != initValue) {
|
||||
value = newValue;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user