Skip to content

Commit

Permalink
Take a few lint hints into consideration
Browse files Browse the repository at this point in the history
  • Loading branch information
ctdk committed Jul 6, 2015
1 parent 34fc658 commit 9c61cf7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
3 changes: 1 addition & 2 deletions indexer/file_index.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,8 @@ func (i *FileIndex) SearchResults(term string, notop bool, docs map[string]Docum
if notop {
d := make(map[string]Document)
return d, nil
} else {
return docs, nil
}
return docs, nil
}
res, err := idc.searchCollection(term, notop)
return res, err
Expand Down
18 changes: 9 additions & 9 deletions shovey/shovey.go
Original file line number Diff line number Diff line change
Expand Up @@ -548,17 +548,17 @@ func AllShoveys() []*Shovey {
var shoveys []*Shovey
if config.UsingDB() {
return allShoveysSQL()
} else {
shoveList := GetList()
for _, s := range shoveList {
sh, err := Get(s)
if err != nil {
logger.Criticalf(err.Error())
os.Exit(1)
}
shoveys = append(shoveys, sh)
}
shoveList := GetList()
for _, s := range shoveList {
sh, err := Get(s)
if err != nil {
logger.Criticalf(err.Error())
os.Exit(1)
}
shoveys = append(shoveys, sh)
}

return shoveys
}

Expand Down

0 comments on commit 9c61cf7

Please sign in to comment.