Projects STRLCPY wholeaked Commits cd96bdfd
🤬
  • ■ ■ ■ ■
    main.go
    skipped 167 lines
    168 168   os.Exit(1)
    169 169   }
    170 170   outPath := strings.ReplaceAll(file, ".pdf", ".txt")
     171 + defer os.Remove(outPath)
    171 172   content, err := ioutil.ReadFile(outPath)
    172 173   if err != nil {
    173 174   color.Red("Couldn't read the PDF file")
    skipped 2 lines
    176 177   }
    177 178   
    178 179   text := string(content)
    179  - os.Remove(outPath)
    180 180   return strings.Contains(text, signature)
    181 181  }
    182 182   
    skipped 679 lines
Please wait...
Page is in error, reload to recover