Skip to content

Commit

Permalink
gofmt
Browse files Browse the repository at this point in the history
  • Loading branch information
korfuri committed Jul 12, 2017
1 parent 605a694 commit ecbe2e3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion elasticsearch/elasticsearch.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const (

// Types in the Elastic search index
packageType = "package"
refType = "ref"
refType = "ref"
)

// PackageExists returns whether the provided loadpath + version tuple
Expand Down
2 changes: 1 addition & 1 deletion elasticsearch/main/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func main() {
}

packages := args

// Index the requested packages
log.Infof("Indexing packages: %v", packages)
if *includeTests {
Expand Down
2 changes: 1 addition & 1 deletion elasticsearch/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

// FilterF returns a function suitable for goref.PackageGraph.FilterF
// that returns false if a package exists in this ElasticSearch index.
func FilterF(client *elastic.Client, index string) (func (string, int64) bool) {
func FilterF(client *elastic.Client, index string) func(string, int64) bool {
return func(loadpath string, version int64) bool {
return !PackageExists(loadpath, version, client, index)
}
Expand Down
2 changes: 1 addition & 1 deletion packagegraph_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ var (
// ConstantVersion returns a versionF function that always replies
// with a constant version. Useful for experimenting, or for graphs
// who load from an immutable snapshot of the Go universe.
func ConstantVersion(v int64) (func(loader.Program, loader.PackageInfo) (int64, error)) {
func ConstantVersion(v int64) func(loader.Program, loader.PackageInfo) (int64, error) {
return func(prog loader.Program, pi loader.PackageInfo) (int64, error) {
return v, nil
}
Expand Down

0 comments on commit ecbe2e3

Please sign in to comment.