api/git/update/update.go
Function UpdateGitObject
has 52 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func UpdateGitObject(gitService portainer.GitService, objId string, gitConfig *gittypes.RepoConfig, forceUpdate, enableVersionFolder bool, projectPath string) (bool, string, error) {
if gitConfig == nil {
return false, "", nil
}
Function UpdateGitObject
has 6 return statements (exceeds 4 allowed). Open
Open
func UpdateGitObject(gitService portainer.GitService, objId string, gitConfig *gittypes.RepoConfig, forceUpdate, enableVersionFolder bool, projectPath string) (bool, string, error) {
if gitConfig == nil {
return false, "", nil
}
Function UpdateGitObject
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func UpdateGitObject(gitService portainer.GitService, objId string, gitConfig *gittypes.RepoConfig, forceUpdate, enableVersionFolder bool, projectPath string) (bool, string, error) {