mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-10 00:10:20 +00:00
util: drop nolint comment for execCommandJSON()
golang-ci suddenly complains about the following issue internal/cephfs/util.go:41:1: directive `// nolint:unparam // todo:program values has to be revisited later` is unused for linter unparam (nolintlint) // nolint:unparam // todo:program values has to be revisited later ^ Dropping the comment completely seems to fix it. Ideally execCommandJSON() will get removed once the migration to go-ceph is complete. Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
parent
eb2584095b
commit
5a1e370433
@ -38,7 +38,6 @@ func execCommandErr(ctx context.Context, program string, args ...string) error {
|
||||
return err
|
||||
}
|
||||
|
||||
// nolint:unparam // todo:program values has to be revisited later
|
||||
func execCommandJSON(ctx context.Context, v interface{}, program string, args ...string) error {
|
||||
stdout, _, err := util.ExecCommand(ctx, program, args...)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user