mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-05 00:15:44 +00:00
Remove unused nolint annotations
The interfacer linter was removed a few years ago. Remove the annotations as well. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
parent
6ef4d68da4
commit
a7886d1fe8
3 changed files with 4 additions and 4 deletions
|
|
@ -171,7 +171,7 @@ func printJSON(data []*dfSummary) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
func printVerbose(cmd *cobra.Command, reports *entities.SystemDfReport) error { //nolint:interfacer
|
||||
func printVerbose(cmd *cobra.Command, reports *entities.SystemDfReport) error {
|
||||
rpt := report.New(os.Stdout, cmd.Name())
|
||||
defer rpt.Flush()
|
||||
|
||||
|
|
|
|||
|
|
@ -1080,7 +1080,7 @@ func (c *Container) StartupHCPassed() (bool, error) {
|
|||
|
||||
// NamespacePath returns the path of one of the container's namespaces
|
||||
// If the container is not running, an error will be returned
|
||||
func (c *Container) NamespacePath(linuxNS LinuxNS) (string, error) { //nolint:interfacer
|
||||
func (c *Container) NamespacePath(linuxNS LinuxNS) (string, error) {
|
||||
if !c.batched {
|
||||
c.lock.Lock()
|
||||
defer c.lock.Unlock()
|
||||
|
|
@ -1094,7 +1094,7 @@ func (c *Container) NamespacePath(linuxNS LinuxNS) (string, error) { //nolint:in
|
|||
|
||||
// namespacePath returns the path of one of the container's namespaces
|
||||
// If the container is not running, an error will be returned
|
||||
func (c *Container) namespacePath(linuxNS LinuxNS) (string, error) { //nolint:interfacer
|
||||
func (c *Container) namespacePath(linuxNS LinuxNS) (string, error) {
|
||||
if c.state.State != define.ContainerStateRunning && c.state.State != define.ContainerStatePaused {
|
||||
return "", fmt.Errorf("cannot get namespace path unless container %s is running: %w", c.ID(), define.ErrCtrStopped)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -41,7 +41,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 {
|
||||
resize := make(chan resize.TerminalSize)
|
||||
|
||||
haveTerminal := term.IsTerminal(int(os.Stdin.Fd()))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue