summaryrefslogtreecommitdiffstats
path: root/routers/api/v1/utils/git.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/api/v1/utils/git.go')
-rw-r--r--routers/api/v1/utils/git.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/api/v1/utils/git.go b/routers/api/v1/utils/git.go
index a941c1fc2c..f7a7fe83c9 100644
--- a/routers/api/v1/utils/git.go
+++ b/routers/api/v1/utils/git.go
@@ -50,12 +50,12 @@ func GetGitRefs(ctx *context.APIContext, filter string) ([]*git.Reference, strin
}
func searchRefCommitByType(ctx *context.APIContext, refType, filter string) (string, string, error) {
- refs, lastMethodName, err := GetGitRefs(ctx, refType+"/"+filter) //Search by type
+ refs, lastMethodName, err := GetGitRefs(ctx, refType+"/"+filter) // Search by type
if err != nil {
return "", lastMethodName, err
}
if len(refs) > 0 {
- return refs[0].Object.String(), "", nil //Return found SHA
+ return refs[0].Object.String(), "", nil // Return found SHA
}
return "", "", nil
}