Combined variable declaration and assignment

Sladyn created

Change summary

commands/ls-id.go | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

Detailed changes

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]
 	}