Skip to content

Commit

Permalink
ISSUE-34: Fix golangci-lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
fraenky8 committed Jan 29, 2022
1 parent 3c1ea9f commit 6ee3915
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/database/sqlite.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ func (s *SQLite) Connect() (err error) {
// DSN creates the DSN String to connect to this database.
func (s *SQLite) DSN() string {
if s.Settings.User == "" && s.Settings.Pswd == "" {
return fmt.Sprintf("%s", s.Settings.DbName)
return s.Settings.DbName
}

u, err := url.Parse(s.DbName)
if err != nil {
return fmt.Sprintf("%s", s.Settings.DbName)
return s.Settings.DbName
}

query := u.Query()
Expand Down

0 comments on commit 6ee3915

Please sign in to comment.