Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Defuse Venue committed Jul 10, 2021
1 parent ebceef5 commit bfaa31b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion v2/pkg/runner/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ type ConfigFile struct {
ExcludeSources []string `yaml:"exclude-sources,omitempty"`
// API keys for different sources
Binaryedge []string `yaml:"binaryedge"`
C99 []string `yaml:"c99"`
C99 []string `yaml:"c99"`
Censys []string `yaml:"censys"`
Certspotter []string `yaml:"certspotter"`
Chaos []string `yaml:"chaos"`
Expand Down
12 changes: 6 additions & 6 deletions v2/pkg/subscraping/sources/c99/c99.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ import (
type Source struct{}

type dnsdbLookupResponse struct {
Success bool `json:"success"`
Success bool `json:"success"`
Subdomains []struct {
Subdomain string `json:"subdomain"`
Ip string `json:"ip"`
Cloudflare bool `json:"cloudflare"`
Subdomain string `json:"subdomain"`
IP string `json:"ip"`
Cloudflare bool `json:"cloudflare"`
} `json:"subdomains"`
Error string `json:"error"`
Error string `json:"error"`
}

// Run function returns all subdomains found with the service
Expand All @@ -29,7 +29,7 @@ func (s *Source) Run(ctx context.Context, domain string, session *subscraping.Se

go func() {
defer close(results)

if session.Keys.C99 == "" {
return
}
Expand Down
2 changes: 1 addition & 1 deletion v2/pkg/subscraping/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ type Session struct {
// Keys contains the current API Keys we have in store
type Keys struct {
Binaryedge string `json:"binaryedge"`
C99 string `json:"c99"`
C99 string `json:"c99"`
CensysToken string `json:"censysUsername"`
CensysSecret string `json:"censysPassword"`
Certspotter string `json:"certspotter"`
Expand Down

0 comments on commit bfaa31b

Please sign in to comment.