Skip to content

Conversation

@percona-csalguero
Copy link
Contributor

No description provided.


mergeOptions(opts, yamlOpts)
validateOptions(yamlOpts)
validateOptions(opts)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Error return value of validateOptions is not checked (from errcheck)

Port: source.Port,
})
}
source.Client.restoreBackup(msg)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Error return value of source.Client.restoreBackup is not checked (from errcheck)


const (
defaultBackupType = "logical"
defaultConfigFile = "~/.pbmctl.yml"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

defaultConfigFile is unused (from varcheck)

Port: defaultMongoDBPort,
},
}
b, err := yaml.Marshal(wantOpts)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ineffectual assignment to err (from ineffassign)

Port: defaultMongoDBPort,
},
}
b, err := yaml.Marshal(wantOpts)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ineffectual assignment to err (from ineffassign)

Port: "12346",
},
}
b, err := yaml.Marshal(wantOpts)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ineffectual assignment to err (from ineffassign)

}
}
if resp.IsPrimary {
s, _ := sources[resp.Replicaset]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should write s := sources[resp.Replicaset] instead of s, _ := sources[resp.Replicaset] (from megacheck)

@percona-csalguero percona-csalguero merged commit 6c02851 into master Jan 14, 2019
@percona-csalguero percona-csalguero deleted the new-configuration-reader branch January 14, 2019 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants