Skip to content

Commit 8d358e2

Browse files
author
kuba--
committed
return NULL if URL has no value
Signed-off-by: kuba-- <[email protected]>
1 parent 5ccdcac commit 8d358e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: remotes.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -174,12 +174,12 @@ func (i *remotesRowIter) Close() error {
174174
}
175175

176176
func remoteToRow(repoID string, config *config.RemoteConfig, pos int) sql.Row {
177-
url := ""
177+
var url interface{}
178178
if pos < len(config.URLs) {
179179
url = config.URLs[pos]
180180
}
181181

182-
fetch := ""
182+
var fetch interface{}
183183
if pos < len(config.Fetch) {
184184
fetch = config.Fetch[pos].String()
185185
}

0 commit comments

Comments
 (0)