Skip to content

Commit 10fbe0e

Browse files
authored
Merge pull request #10 from hymkor/push-ooxrrynnsurs
Fix: go vet: github.com/hymkor/sqlbless/internal/misc.AutoCsvi struct literal uses unkeyed fields
2 parents 955bd20 + ba1ffaa commit 10fbe0e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

edit.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ func doEdit(ctx context.Context, ss *session, command string, pilot commandIn) e
8787
Exec: (&askSqlAndExecute{getKey: pilot.GetKey, session: ss}).Exec,
8888
}
8989
if a, ok := pilot.AutoPilotForCsvi(); ok {
90-
editor.Pilot = misc.AutoCsvi{a}
90+
editor.Pilot = misc.AutoCsvi{GetKeyAndSize: a}
9191
}
9292
if ss.tx == nil {
9393
editor.Query = ss.conn.QueryContext

interactive.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ func (ss *session) newInteractiveIn() *interactiveIn {
146146
}
147147
editor.LineEditor.Tty = tty1
148148
tty = tty1
149-
csviPilot = misc.AutoCsvi{tty1}
149+
csviPilot = misc.AutoCsvi{GetKeyAndSize: tty1}
150150
} else {
151151
tty = &tty8.Tty{}
152152
}

0 commit comments

Comments
 (0)