archive/tarutil/writer.go
Function AddFileToArchive
has 6 return statements (exceeds 4 allowed). Open
Open
func AddFileToArchive(tw *tar.Writer, filename, archivename string) error {
// Open the file which will be written into the archive
file, err := os.Open(filename)
if err != nil {
return err