Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Empty query should not work
Browse files Browse the repository at this point in the history
  • Loading branch information
Evengining committed Jan 9, 2019
1 parent 3a2a38f commit 543ecaf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/csearch/csearch.go
Expand Up @@ -70,6 +70,10 @@ func Main() {
usage()
}

if args[0] == "" {
usage()
}

if *cpuProfile != "" {
f, err := os.Create(*cpuProfile)
if err != nil {
Expand Down

0 comments on commit 543ecaf

Please sign in to comment.