hillu/local-log4j-vuln-scanner

Just curious - why do you do f.Seek(0, END) twice?

dladlk opened this issue · 1 comments

I am new in GoLang but anyway not sure if it is done by intention :)

if _, err := f.Seek(0, os.SEEK_END); err != nil {

hillu commented

I suppose that my intent may have been to seek back to the start of the file, but this is pointless because handleJar does not use the file pointer at all (it only uses the ReaderAt interface.) Thank you.