func (j *macaroonJar) reset() error {
	j.err = nil
	j.currentCharm = nil

	// clear out the cookie jar to ensure we don't have any cruft left over.
	underlying, err := cookiejar.New(nil)
	if err != nil {
		// currently this is impossible, since the above never actually
		// returns an error
		return errors.Trace(err)
	}
	j.underlying = underlying
	return nil
}
// reset empties the cookiejar and disables the functionality of storing
// macaroons in SetCookies.
reset empties the cookiejar and disables the functionality of storing
macaroons in SetCookies.
// reset empties the cookiejar and disables the functionality of storing // macaroons in SetCookies .
func (j *macaroonJar) reset() error {
	j.err = nil
	j.currentCharm = nil
	underlying, err := cookiejar.New(nil)
	if err != nil {
		return errors.Trace(err)
	}
	j.underlying = underlying
	return nil
}
func ( j * macaroonJar ) reset ( ) error { j . err = nil j . currentCharm = nil underlying , err := cookiejar . New ( nil ) if err != nil { return errors . Trace ( err ) } j . underlying = underlying return nil }
reset empties the cookiejar and disables the functionality of storing
macaroons in SetCookies.
reset empties the cookiejar and disables the functionality of storing macaroons in SetCookies .
// clear out the cookie jar to ensure we don't have any cruft left over. // currently this is impossible, since the above never actually // returns an error