style: add blank lines between declarations and statement blocks
Separate top-level declarations and multi-line statements with blank lines, keeping an "if err != nil" check next to the statement it belongs to. Expand semicolon one-liners, group the nativeTransport fields by purpose, and format the cgo preamble as readable C. Apart from the expanded one-liners and the C preamble, the change is whitespace only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ec0297fd23
commit
a6fda8f8d3
25 files changed
+929
-41
No files matched your search
@@ -13,15 +13,18 @@ func openNativeEngine(ctx context.Context, c Config, x Executor, log io.Writer)
|
||||
if err := ctx.Err(); err != nil {
|
||||
return Engine{}, nil, err
|
||||
}
|
||||
|
||||
source, err := cephfsnative.Open(options(c.Source))
|
||||
if err != nil {
|
||||
return Engine{}, nil, err
|
||||
}
|
||||
|
||||
target, err := cephfsnative.Open(options(c.Target))
|
||||
if err != nil {
|
||||
source.Close()
|
||||
return Engine{}, nil, err
|
||||
}
|
||||
|
||||
backend := &nativeTransport{source: source, target: target, config: c, log: log}
|
||||
return Engine{Exec: x, Log: log, Transport: backend, Access: nativeAccess{backend}}, backend, nil
|
||||
}
|
||||
Reference in new issue
Block a user