Skip to content

Commit deb57e5

Browse files
committed
Add comment.
1 parent 8aa3c6c commit deb57e5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmd/config.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,8 @@ type DBConfig struct {
192192
DBConnectFile string
193193
}
194194

195+
// URL returns the DBConnect URL represented by this DBConfig object, either
196+
// loading it from disk or returning a default value.
195197
func (d *DBConfig) URL() (string, error) {
196198
if c.DBConnectFile != "" {
197199
return ioutil.ReadFile(c.DBConnectFile)

0 commit comments

Comments
 (0)