From 24dc9c897ec50b1813c67cd8d47254cf591e8e78 Mon Sep 17 00:00:00 2001 From: Steve Streeting Date: Mon, 2 Jan 2017 14:37:08 +0000 Subject: [PATCH] Use nil instead of empty function --- commands/command_post_checkout.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/commands/command_post_checkout.go b/commands/command_post_checkout.go index 96427326..84dbfd88 100644 --- a/commands/command_post_checkout.go +++ b/commands/command_post_checkout.go @@ -75,6 +75,5 @@ func postCheckoutFileChange(client *locking.Client) { } func init() { - RegisterCommand("post-checkout", postCheckoutCommand, func(cmd *cobra.Command) { - }) + RegisterCommand("post-checkout", postCheckoutCommand, nil) }