aboutsummaryrefslogtreecommitdiffstats
path: root/bridge/gitlab/export_test.go
diff options
context:
space:
mode:
authoramine <hilalyamine@gmail.com>2019-11-05 21:15:21 +0100
committeramine <hilalyamine@gmail.com>2019-11-05 21:15:21 +0100
commitb1a7618428fe11027526998cb3c6924bdea4a5ff (patch)
tree58a4fba847b580593528cf19018268946a05e057 /bridge/gitlab/export_test.go
parent13f98d0cc47cde61aeff62f1656ec6b4b5922c1c (diff)
downloadgit-bug-b1a7618428fe11027526998cb3c6924bdea4a5ff.tar.gz
bridge/gitlab: add missing error check in export tests
Diffstat (limited to 'bridge/gitlab/export_test.go')
-rw-r--r--bridge/gitlab/export_test.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/bridge/gitlab/export_test.go b/bridge/gitlab/export_test.go
index 02e06efd..3d3f406f 100644
--- a/bridge/gitlab/export_test.go
+++ b/bridge/gitlab/export_test.go
@@ -284,8 +284,11 @@ func createRepository(ctx context.Context, name, token string) (int, error) {
},
gitlab.WithContext(ctx),
)
+ if err != nil {
+ return 0, err
+ }
- return project.ID, err
+ return project.ID, nil
}
// delete repository need a token with scope 'delete_repo'