// Close closes the underlying file if it's still open, or does a no-op
// to allow callers to try to close the TempArchive multiple times safely.
Close closes the underlying file if it's still open, or does a no-op
to allow callers to try to close the TempArchive multiple times safely.
// Close closes the underlying file if it ' s still open or does a no - op // to allow callers to try to close the TempArchive multiple times safely .
func (archive *TempArchive) Close() error {
        if archive.closed {
                return nil
        }
        archive.closed = true
        return archive.File.Close()
}
func ( archive * TempArchive ) Close ( ) error { if archive . closed { return nil } archive . closed = true return archive . File . Close ( ) }
Close closes the underlying file if it's still open, or does a no-op
to allow callers to try to close the TempArchive multiple times safely.
Close closes the underlying file if it ' s still open or does a no - op to allow callers to try to close the TempArchive multiple times safely .