Skip to content

Commit

Permalink
return NULL if URL has no value
Browse files Browse the repository at this point in the history
Signed-off-by: kuba-- <[email protected]>
  • Loading branch information
kuba-- committed Apr 10, 2019
1 parent 5ccdcac commit 8d358e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions remotes.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,12 +174,12 @@ func (i *remotesRowIter) Close() error {
}

func remoteToRow(repoID string, config *config.RemoteConfig, pos int) sql.Row {
url := ""
var url interface{}
if pos < len(config.URLs) {
url = config.URLs[pos]
}

fetch := ""
var fetch interface{}
if pos < len(config.Fetch) {
fetch = config.Fetch[pos].String()
}
Expand Down

0 comments on commit 8d358e2

Please sign in to comment.