Skip to content

Commit

Permalink
style: make linter happy
Browse files Browse the repository at this point in the history
Signed-off-by: Jian Zeng <[email protected]>
  • Loading branch information
knight42 committed Jan 7, 2024
1 parent 41f32f3 commit a5960e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func New(configPath string) (*Server, error) {

func NewWithConfig(cfg Config) (*Server, error) {
dbURL := cfg.DbURL
if strings.IndexRune(dbURL, '?') < 0 {
if !strings.ContainsRune(dbURL, '?') {
// enable WAL mode by default to improve performance
dbURL += "?_journal_mode=WAL"
}
Expand Down

0 comments on commit a5960e4

Please sign in to comment.