mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-21 16:38:23 +01:00
Remove unnecessary var declaration in WindowService (#133)
This commit is contained in:
parent
198ec60e69
commit
21e5e94db4
@ -64,9 +64,8 @@ func (svc *WindowService) CloseTab(ctx context.Context, uiContext wstore.UIConte
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("error getting workspace: %w", err)
|
||||
}
|
||||
var newActiveTabId string
|
||||
if len(ws.TabIds) > 0 {
|
||||
newActiveTabId = ws.TabIds[0]
|
||||
newActiveTabId := ws.TabIds[0]
|
||||
wstore.SetActiveTab(ctx, uiContext.WindowId, newActiveTabId)
|
||||
} else {
|
||||
eventbus.SendEventToElectron(eventbus.WSEventType{
|
||||
|
Loading…
Reference in New Issue
Block a user