From db727b232f4c08acb53d54c7b963268c6f722e67 Mon Sep 17 00:00:00 2001 From: sawka Date: Wed, 11 Jan 2023 22:26:27 -0800 Subject: [PATCH] fix unused variable --- pkg/sstore/dbops.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/pkg/sstore/dbops.go b/pkg/sstore/dbops.go index 747aa4a7..a665741a 100644 --- a/pkg/sstore/dbops.go +++ b/pkg/sstore/dbops.go @@ -1237,14 +1237,11 @@ func SetScreenOpts(ctx context.Context, sessionId string, screenId string, opts } func ArchiveWindowLines(ctx context.Context, sessionId string, windowId string) (*ModelUpdate, error) { - var lineIds []string txErr := WithTx(ctx, func(tx *TxWrap) error { query := `SELECT windowid FROM window WHERE sessionid = ? AND windowid = ?` if !tx.Exists(query, sessionId, windowId) { return fmt.Errorf("window does not exist") } - query = `SELECT lineid FROM line WHERE sessionid = ? AND windowid = ?` - lineIds = tx.SelectStrings(query, sessionId, windowId) query = `UPDATE line SET archived = 1 WHERE sessionid = ? AND windowid = ?` tx.ExecWrap(query, sessionId, windowId) return nil