style rename for clarity
License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Brian Tiger Chow committed
Nov 16, 2014 at 00:37 UTC
4cadbc16738811e0cab641d32677cf8d381876cd
1 file changed
+3
-3
cmd/ipfs2/main.go
+3
-3
@@ -206,12 +206,12 @@ func (i *cmdInvocation) requestedHelp() (short bool, long bool, err error) {
206
return longHelp, shortHelp, nil
207
}
208
209
-func callPreCommandHooks(details cmdDetails, req cmds.Request, root *cmds.Command) error {
209
+func callPreCommandHooks(command cmdDetails, req cmds.Request, root *cmds.Command) error {
210
211
log.Debug("Calling pre-command hooks...")
212
213
// some hooks only run when the command is executed locally
214
- daemon, err := commandShouldRunOnDaemon(details, req, root)
214
+ daemon, err := commandShouldRunOnDaemon(command, req, root)
215
if err != nil {
216
return err
217
}
@@ -219,7 +219,7 @@ func callPreCommandHooks(details cmdDetails, req cmds.Request, root *cmds.Comman
219
// check for updates when 1) commands is going to be run locally, 2) the
220
// command does not initialize the config, and 3) the command does not
221
// pre-empt updates
222
- if !daemon && details.usesConfigAsInput() && details.doesNotPreemptAutoUpdate() {
222
+ if !daemon && command.usesConfigAsInput() && command.doesNotPreemptAutoUpdate() {
223
224
log.Debug("Calling hook: Check for updates")
225