Skip to content

Commit

Permalink
1. uid去除,排序更加有效
Browse files Browse the repository at this point in the history
  • Loading branch information
屈定 committed Nov 1, 2019
1 parent 4865ecb commit 8fd684c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions action/ResultParse.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,9 @@ var openItem = model.Item{

func ParseCommands(commands []model.Project, isAppendOpen bool) {
var items = make([]model.Item, 0, len(commands))
for index, v := range commands {
for _, v := range commands {
var item = model.Item{
Autocomplete: v.Key,
Uid: strconv.Itoa(index),
Arg: "",
Title: v.Key,
Subtitle: v.Remark,
Expand Down

0 comments on commit 8fd684c

Please sign in to comment.