Combined variable declaration and assignment

This commit is contained in:
Sladyn 2019-03-05 17:50:58 +05:30
parent a45ece05e6
commit cdd8167aa0

View File

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