mirror of
https://github.com/rclone/rclone.git
synced 2026-08-07 05:22:48 -04:00
oracleobjectstorage, sftp: eliminate unnecessary heap allocation
Move the declaration location of variables to eliminate heap allocation which may make rclone faster and reduce memory usage slightly. Fixes #9078
This commit is contained in:
1 parent
a64a8aad0e
commit
530a901de3
3 files changed
+7
-8
No files matched your search
@@ -291,7 +291,7 @@ func (c *conn) handleChannel(newChannel ssh.NewChannel) {
|
||||
}
|
||||
}
|
||||
fs.Debugf(c.what, " - accepted: %v\n", ok)
|
||||
err = req.Reply(ok, reply)
|
||||
err := req.Reply(ok, reply)
|
||||
if err != nil {
|
||||
fs.Errorf(c.what, "Failed to Reply to request: %v", err)
|
||||
return
|
||||
|
||||
Reference in new issue
Block a user