Skip to content

Commit

Permalink
fix(ci): apply go fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony LE BERRE committed Mar 21, 2021
1 parent 4e23299 commit 73e4b2b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/inputs/x509_cert/x509_cert.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ func (c *X509Cert) sourcesToURLs() error {
c.globpaths = append(c.globpaths, g)
} else {

if strings.Index(source, ":\\") == 1 {
source = "file://" + filepath.ToSlash(source)
}
if strings.Index(source, ":\\") == 1 {
source = "file://" + filepath.ToSlash(source)
}
u, err := url.Parse(source)
if err != nil {
return fmt.Errorf("failed to parse cert location - %s", err.Error())
Expand Down

0 comments on commit 73e4b2b

Please sign in to comment.