[disk][darwin]:rename unused parameter in function to fix lint

pull/1791/head
shirou 2 months ago committed by GitHub
parent 935bb6c8f3
commit 6d4c8e567e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -118,7 +118,7 @@ type spnvmeDataWrapper struct {
} `json:"SPNVMeDataType"` } `json:"SPNVMeDataType"`
} }
func SerialNumberWithContext(ctx context.Context, name string) (string, error) { func SerialNumberWithContext(ctx context.Context, _ string) (string, error) {
output, err := invoke.CommandWithContext(ctx, "system_profiler", "SPNVMeDataType", "-json") output, err := invoke.CommandWithContext(ctx, "system_profiler", "SPNVMeDataType", "-json")
if err != nil { if err != nil {
return "", err return "", err

Loading…
Cancel
Save