mirror of
https://github.com/Eugeny/tabby.git
synced 2025-10-05 06:24:56 +00:00
reenabled @typescript-eslint/prefer-nullish-coalescing
This commit is contained in:
@@ -44,7 +44,7 @@ export class SerialSession extends BaseSession {
|
||||
|
||||
constructor (public connection: SerialConnection) {
|
||||
super()
|
||||
this.scripts = connection.scripts || []
|
||||
this.scripts = connection.scripts ?? []
|
||||
}
|
||||
|
||||
async start (): Promise<void> {
|
||||
|
@@ -37,7 +37,7 @@ export class EditConnectionModalComponent {
|
||||
}
|
||||
|
||||
async ngOnInit () {
|
||||
this.connection.scripts = this.connection.scripts || []
|
||||
this.connection.scripts = this.connection.scripts ?? []
|
||||
this.foundPorts = await this.serial.listPorts()
|
||||
}
|
||||
|
||||
|
@@ -57,7 +57,6 @@ export class SerialService {
|
||||
this.toastr.error(e.message)
|
||||
reject(e)
|
||||
}
|
||||
|
||||
})
|
||||
return serial
|
||||
}
|
||||
@@ -125,7 +124,7 @@ export class SerialService {
|
||||
{ connection }
|
||||
) as SerialTabComponent
|
||||
if (connection.color) {
|
||||
(this.app.getParentTab(tab) || tab).color = connection.color
|
||||
(this.app.getParentTab(tab) ?? tab).color = connection.color
|
||||
}
|
||||
setTimeout(() => {
|
||||
this.app.activeTab.emitFocused()
|
||||
|
Reference in New Issue
Block a user