Fix nlreturn errors by adding blank lines before returns in multi-line closures
This commit is contained in:
@@ -1003,14 +1003,17 @@ func runComprehensiveCapture(ctx context.Context, client *onvif.Client, report *
|
|||||||
{"GetNTP", func() error { _, err := client.GetNTP(ctx); return fmt.Errorf("GetNTP: %w", err) }}, //nolint:nlreturn
|
{"GetNTP", func() error { _, err := client.GetNTP(ctx); return fmt.Errorf("GetNTP: %w", err) }}, //nolint:nlreturn
|
||||||
{"GetNetworkInterfaces", func() error {
|
{"GetNetworkInterfaces", func() error {
|
||||||
_, err := client.GetNetworkInterfaces(ctx)
|
_, err := client.GetNetworkInterfaces(ctx)
|
||||||
|
|
||||||
return fmt.Errorf("GetNetworkInterfaces: %w", err)
|
return fmt.Errorf("GetNetworkInterfaces: %w", err)
|
||||||
}},
|
}},
|
||||||
{"GetNetworkProtocols", func() error {
|
{"GetNetworkProtocols", func() error {
|
||||||
_, err := client.GetNetworkProtocols(ctx)
|
_, err := client.GetNetworkProtocols(ctx)
|
||||||
|
|
||||||
return fmt.Errorf("GetNetworkProtocols: %w", err)
|
return fmt.Errorf("GetNetworkProtocols: %w", err)
|
||||||
}},
|
}},
|
||||||
{"GetNetworkDefaultGateway", func() error {
|
{"GetNetworkDefaultGateway", func() error {
|
||||||
_, err := client.GetNetworkDefaultGateway(ctx)
|
_, err := client.GetNetworkDefaultGateway(ctx)
|
||||||
|
|
||||||
return fmt.Errorf("GetNetworkDefaultGateway: %w", err)
|
return fmt.Errorf("GetNetworkDefaultGateway: %w", err)
|
||||||
}},
|
}},
|
||||||
{"GetScopes", func() error { _, err := client.GetScopes(ctx); return err }},
|
{"GetScopes", func() error { _, err := client.GetScopes(ctx); return err }},
|
||||||
|
|||||||
Reference in New Issue
Block a user