all: Bunch of more linter fixes (#5500)

This commit is contained in:
Jakob Borg
2019-02-02 11:02:28 +01:00
committed by GitHub
parent 2111386ee4
commit df5c1eaf01
30 changed files with 118 additions and 117 deletions

View File

@@ -548,7 +548,7 @@ func TestPrepare(t *testing.T) {
t.Error("Expected nil")
}
cfg.prepare(device1)
_ = cfg.prepare(device1)
if cfg.Folders == nil || cfg.Devices == nil || cfg.Options.ListenAddresses == nil {
t.Error("Unexpected nil")
@@ -627,7 +627,7 @@ func TestPullOrder(t *testing.T) {
buf := new(bytes.Buffer)
cfg := wrapper.RawCopy()
cfg.WriteXML(buf)
_ = cfg.WriteXML(buf)
t.Logf("%s", buf.Bytes())
@@ -918,7 +918,7 @@ func TestIssue4219(t *testing.T) {
],
"folders": [
{
"id": "abcd123",
"id": "abcd123",
"devices":[
{"deviceID": "GYRZZQB-IRNPV4Z-T7TC52W-EQYJ3TT-FDQW6MW-DFLMU42-SSSU6EM-FBK2VAY"}
]
@@ -1080,7 +1080,7 @@ func TestDeviceConfigObservedNotNil(t *testing.T) {
},
}
cfg.prepare(device1)
_ = cfg.prepare(device1)
for _, dev := range cfg.Devices {
if dev.IgnoredFolders == nil {