mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-22 22:30:23 +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
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// nolint:unparam // todo:program values has to be revisited later
|
|
||||||
func execCommandJSON(ctx context.Context, v interface{}, program string, args ...string) error {
|
func execCommandJSON(ctx context.Context, v interface{}, program string, args ...string) error {
|
||||||
stdout, _, err := util.ExecCommand(ctx, program, args...)
|
stdout, _, err := util.ExecCommand(ctx, program, args...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user