Refactoring: replace sort.StringSlice with simply []string

This commit is contained in:
Andrey Smirnov
2014-02-18 14:13:18 +04:00
parent 190a81e141
commit 7864ce241b
4 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -71,7 +71,7 @@ func aptlySnapshotList(cmd *commander.Command, args []string) error {
if snapshotCollection.Len() > 0 {
fmt.Printf("List of snapshots:\n")
snapshots := make(sort.StringSlice, snapshotCollection.Len())
snapshots := make([]string, snapshotCollection.Len())
i := 0
snapshotCollection.ForEach(func(snapshot *debian.Snapshot) error {
@@ -195,7 +195,7 @@ func aptlySnapshotVerify(cmd *commander.Command, args []string) error {
fmt.Printf("All dependencies are satisfied.\n")
} else {
fmt.Printf("Missing dependencies (%d):\n", len(missing))
deps := make(sort.StringSlice, len(missing))
deps := make([]string, len(missing))
i := 0
for _, dep := range missing {
deps[i] = dep.String()