mirror of
https://github.com/containers/podman.git
synced 2025-06-24 11:28:24 +08:00
linter: enable interfacer
Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
This commit is contained in:
@ -67,7 +67,6 @@ linters:
|
||||
- nilerr
|
||||
- wastedassign
|
||||
- nilnil
|
||||
- interfacer
|
||||
linters-settings:
|
||||
errcheck:
|
||||
check-blank: false
|
||||
|
@ -39,7 +39,7 @@ func ExecAttachCtr(ctx context.Context, ctr *libpod.Container, execConfig *libpo
|
||||
// StartAttachCtr starts and (if required) attaches to a container
|
||||
// if you change the signature of this function from os.File to io.Writer, it will trigger a downstream
|
||||
// error. we may need to just lint disable this one.
|
||||
func StartAttachCtr(ctx context.Context, ctr *libpod.Container, stdout, stderr, stdin *os.File, detachKeys string, sigProxy bool, startContainer bool) error { //nolint-interfacer
|
||||
func StartAttachCtr(ctx context.Context, ctr *libpod.Container, stdout, stderr, stdin *os.File, detachKeys string, sigProxy bool, startContainer bool) error { //nolint: interfacer
|
||||
resize := make(chan define.TerminalSize)
|
||||
|
||||
haveTerminal := terminal.IsTerminal(int(os.Stdin.Fd()))
|
||||
|
Reference in New Issue
Block a user