Skip to content

Commit

Permalink
Do not show web search entry for an empty query
Browse files Browse the repository at this point in the history
  • Loading branch information
yamnikov-oleg committed Feb 5, 2017
1 parent 5714382 commit 71dd993
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wsearch_entry.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
package main

func MakeWebSearchEntry(query string) LaunchEntriesList {
if query == "" {
return nil
}
return LaunchEntriesList{
NewWebSearchEntry(query),
}
Expand Down

0 comments on commit 71dd993

Please sign in to comment.