diff options
author | Amine <hilalyamine@gmail.com> | 2019-07-05 18:32:51 +0200 |
---|---|---|
committer | Amine Hilaly <hilalyamine@gmail.com> | 2019-07-05 18:46:59 +0200 |
commit | 93e731fd0d365c0cf49dbb7aea371e48f46e1f11 (patch) | |
tree | ca93992d6398f62ab394b462eb64271ce39d6413 /bridge/core | |
parent | 4b6949fcce9ea5caf8c62274c4441f41827dc854 (diff) | |
download | git-bug-93e731fd0d365c0cf49dbb7aea371e48f46e1f11.tar.gz |
[bridge/github] improve comments and documentation
[bridge/github] improve error handling and tests
Co-Authored-By: Michael Muré <batolettre@gmail.com>
Diffstat (limited to 'bridge/core')
-rw-r--r-- | bridge/core/bridge.go | 2 | ||||
-rw-r--r-- | bridge/core/interfaces.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/bridge/core/bridge.go b/bridge/core/bridge.go index 30e051be..d04e88e4 100644 --- a/bridge/core/bridge.go +++ b/bridge/core/bridge.go @@ -313,5 +313,5 @@ func (b *Bridge) ExportAll(since time.Time) (<-chan ExportResult, error) { return nil, err } - return exporter.ExportAll(b.repo, since), nil + return exporter.ExportAll(b.repo, since) } diff --git a/bridge/core/interfaces.go b/bridge/core/interfaces.go index 5cc7006a..76d66fb4 100644 --- a/bridge/core/interfaces.go +++ b/bridge/core/interfaces.go @@ -34,5 +34,5 @@ type Importer interface { type Exporter interface { Init(conf Configuration) error - ExportAll(repo *cache.RepoCache, since time.Time) <-chan ExportResult + ExportAll(repo *cache.RepoCache, since time.Time) (<-chan ExportResult, error) } |