Skip to content

Commit

Permalink
style: format code with Gofumpt
Browse files Browse the repository at this point in the history
This commit fixes the style issues introduced in 76a5069 according to the output
from Gofumpt.

Details: #238
  • Loading branch information
deepsource-autofix[bot] authored Feb 2, 2024
1 parent 76a5069 commit 659daa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion command/report/dsn.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type DSN struct {
}

func NewDSN(raw string) (*DSN, error) {
var dsnPattern = regexp.MustCompile(`^(https?)://([^:@]+)@([^:/]+(?:\:\d+)?)`)
dsnPattern := regexp.MustCompile(`^(https?)://([^:@]+)@([^:/]+(?:\:\d+)?)`)
matches := dsnPattern.FindStringSubmatch(raw)
if len(matches) != 4 {
return nil, ErrInvalidDSN
Expand Down

0 comments on commit 659daa3

Please sign in to comment.