Skip to content

Commit d22b405

Browse files
committed
fix: simplify isLocked logic in LyfiState enum
1 parent f0f50e3 commit d22b405

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • client/packages/borneo_kernel/lib/drivers/borneo/lyfi

client/packages/borneo_kernel/lib/drivers/borneo/lyfi/models.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ enum LyfiState {
7272
disco,
7373
slave;
7474

75-
bool get isLocked => !(this == preview || this == dimming || this == disco || this == slave);
75+
bool get isLocked => this != preview && this != dimming && this != disco && this != slave;
7676

7777
factory LyfiState.fromString(String item) => switch (item) {
7878
"normal" => LyfiState.normal,

0 commit comments

Comments
 (0)