Bump Go versions for Travis, fix tests

Replace gometalinter with golangci-lint.

Fix system tests (wheezy is gone, replace with stretch).

Fix linter warnings.
This commit is contained in:
Andrey Smirnov committed 2019-07-04 00:16:12 +03:00
1 parent e2d6a53de5
commit 2c91bcdc30
116 files changed
+1503 -1067

No files matched your search

+1 -1
View File
@@ -300,7 +300,7 @@ func apiPublishUpdateSwitch(c *gin.Context) {
}
snapshot, err2 := snapshotCollection.ByName(snapshotInfo.Name)
if err != nil {
if err2 != nil {
c.AbortWithError(404, err2)
return
}