aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSladyn <gunnerforlife00@gmail.com>2019-03-05 17:50:58 +0530
committerSladyn <gunnerforlife00@gmail.com>2019-03-05 17:50:58 +0530
commitcdd8167aa0c4a8942d5d92d3d600e03d7c4a5e31 (patch)
tree421abb4d0a43c0fc0925561c0c8204d266ba99c6
parenta45ece05e6cc02f8f9d8e669cc5ea942b0728eaa (diff)
downloadgit-bug-cdd8167aa0c4a8942d5d92d3d600e03d7c4a5e31.tar.gz
Combined variable declaration and assignment
-rw-r--r--commands/ls-id.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/commands/ls-id.go b/commands/ls-id.go
index 55548556..3b0e476e 100644
--- a/commands/ls-id.go
+++ b/commands/ls-id.go
@@ -16,8 +16,7 @@ func runLsID(cmd *cobra.Command, args []string) error {
}
defer backend.Close()
- var prefix string
- prefix = ""
+ var prefix = ""
if len(args) != 0 {
prefix = args[0]
}