summaryrefslogtreecommitdiff
path: root/pkg/api
diff options
context:
space:
mode:
authorValentin Rothberg <rothberg@redhat.com>2020-03-05 20:03:44 +0100
committerValentin Rothberg <rothberg@redhat.com>2020-03-05 20:03:44 +0100
commit593eb7625a75f5ea670bc53316d7a8b4e376203b (patch)
treee5ded209dc790ff2794a782aae6cf95d542b8f84 /pkg/api
parent60e9e7ca9c9081f31f6b37c922f0058f82b989ad (diff)
downloadpodman-593eb7625a75f5ea670bc53316d7a8b4e376203b.tar.gz
podman-593eb7625a75f5ea670bc53316d7a8b4e376203b.tar.bz2
podman-593eb7625a75f5ea670bc53316d7a8b4e376203b.zip
golangci: enable goimports
Enable the goimports linter and fix reports. Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Diffstat (limited to 'pkg/api')
-rw-r--r--pkg/api/handlers/containers.go2
-rw-r--r--pkg/api/handlers/utils/handler.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/pkg/api/handlers/containers.go b/pkg/api/handlers/containers.go
index ee080e794..31cbde229 100644
--- a/pkg/api/handlers/containers.go
+++ b/pkg/api/handlers/containers.go
@@ -2,12 +2,12 @@ package handlers
import (
"fmt"
- "github.com/docker/docker/api/types"
"net/http"
"github.com/containers/libpod/libpod"
"github.com/containers/libpod/libpod/define"
"github.com/containers/libpod/pkg/api/handlers/utils"
+ "github.com/docker/docker/api/types"
"github.com/gorilla/schema"
"github.com/pkg/errors"
)
diff --git a/pkg/api/handlers/utils/handler.go b/pkg/api/handlers/utils/handler.go
index 44bcc794c..32b8c5b0a 100644
--- a/pkg/api/handlers/utils/handler.go
+++ b/pkg/api/handlers/utils/handler.go
@@ -3,7 +3,6 @@ package utils
import (
"encoding/json"
"fmt"
- "github.com/pkg/errors"
"io"
"net/http"
"net/url"
@@ -11,6 +10,7 @@ import (
"strings"
"github.com/gorilla/mux"
+ "github.com/pkg/errors"
"github.com/sirupsen/logrus"
)