concourse / concourse

Function with cyclomatic complexity higher than threshold GO-R1005
Anti-pattern
Minor
1 occurrence in this check
func ExtractEntry has a cyclomatic complexity of 22 with "high" risk
 55	return fmt.Sprintf("entry '%s' links outside of target directory: %s", err.HeaderName, err.LinkName)
 56}
 57
 58func ExtractEntry(header *tar.Header, dest string, input io.Reader, chown bool) error { 59	filePath := filepath.Join(dest, header.Name)
 60	fileInfo := header.FileInfo()
 61	fileMode := fileInfo.Mode()