Skip to content

Commit 0c6a689

Browse files
committed
Converted unnecessary 'else if' to simply 'else'
1 parent d74a2aa commit 0c6a689

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lifecycle/MatlabLifecycleManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ class MatlabLifecycleManager {
136136
handleConnectionStatusChange (data: MatlabConnectionStatusParam): void {
137137
if (data.connectionAction === 'connect') {
138138
void this.connectToMatlab(connection)
139-
} else if (data.connectionAction === 'disconnect') {
139+
} else {
140140
this.disconnectFromMatlab()
141141
}
142142
}

0 commit comments

Comments
 (0)