Skip to content

Commit e7877ff

Browse files
author
Erik Hollensbe
authored
Merge pull request #455 from dseevr/ineffassign_fix
*: fix assignments to make the new version of ineffassign happy
2 parents 1e9e603 + a14d88b commit e7877ff

5 files changed

Lines changed: 6 additions & 6 deletions

File tree

db/test/etcd_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ func (s *testSuite) TestCRUD(c *C) {
116116

117117
te := newTestEntity("test", "data")
118118
path, err := te.Path()
119+
c.Assert(err, IsNil)
119120
c.Assert(path, Equals, "test/test")
120121
c.Assert(volClient.Get(te), NotNil)
121122

storage/backend/nfs/nfs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ func (d *Driver) mkOpts(do storage.DriverOptions) (string, error) {
8585
return "", err
8686
}
8787

88-
host := ""
88+
var host string
8989

9090
if !strings.Contains(do.Source, ":") {
9191
res, ok := mapOpts["addr"]

systemtests/integrated_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ func (s *systemtestSuite) TestIntegratedMultipleFileSystems(c *C) {
354354

355355
c.Assert(s.createVolume("mon0", ext4vol, map[string]string{"filesystem": "ext4"}), IsNil)
356356

357-
out, err = s.dockerRun("mon0", false, true, ext4vol, "sleep 10m")
357+
_, err = s.dockerRun("mon0", false, true, ext4vol, "sleep 10m")
358358
c.Assert(err, IsNil)
359359

360360
out, err = s.vagrant.GetNode("mon0").RunCommandWithOutput("mount -l -t ext4")

systemtests/volsupervisor_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ func (s *systemtestSuite) TestVolsupervisorStopStartSnapshot(c *C) {
8484
c.Assert(err, IsNil)
8585
c.Assert(len(strings.Split(out, "\n")) > 2, Equals, true)
8686

87-
out, err = s.volcli("volume remove " + fqVolName)
87+
_, err = s.volcli("volume remove " + fqVolName)
8888
c.Assert(err, IsNil)
8989

9090
_, err = s.vagrant.GetNode("mon0").RunCommandWithOutput("sudo rbd snap ls policy1." + volName)

watch/watch.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,9 @@ func Create(w *Watcher) {
110110
}
111111
}(w)
112112

113-
wary, ok := watchers[w.Path]
113+
_, ok := watchers[w.Path]
114114
if !ok {
115-
wary = []*Watcher{}
116-
watchers[w.Path] = wary
115+
watchers[w.Path] = []*Watcher{}
117116
}
118117
watchers[w.Path] = append(watchers[w.Path], w)
119118
}

0 commit comments

Comments
 (0)