mirror of
https://github.com/TECHNOFAB11/dbmate.git
synced 2026-02-02 09:25:07 +01:00
Simplify utils.go
This commit is contained in:
parent
9029bbbe3d
commit
cb5cd35c4f
1 changed files with 1 additions and 1 deletions
2
utils.go
2
utils.go
|
|
@ -9,7 +9,7 @@ import (
|
|||
func databaseName(u *url.URL) string {
|
||||
name := u.Path
|
||||
if len(name) > 0 && name[:1] == "/" {
|
||||
name = name[1:len(name)]
|
||||
name = name[1:]
|
||||
}
|
||||
|
||||
return name
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue