func (p *Strategy) Validate() error {
	if err := p.store.Validate(p.charmURL); err != nil {
		return errors.Trace(err)
	}
	if p.charmURL.Revision < 0 {
		return errors.Errorf("charm URL must include a revision")
	}
	return nil
}
// Validate will attempt to validate the requirements for adding a charm to the
// store.
Validate will attempt to validate the requirements for adding a charm to the
store.
// Validate will attempt to validate the requirements for adding a charm to the // store .
func (p *Strategy) Validate() error {
	if err := p.store.Validate(p.charmURL); err != nil {
		return errors.Trace(err)
	}
	if p.charmURL.Revision < 0 {
		return errors.Errorf("charm URL must include a revision")
	}
	return nil
}
func ( p * Strategy ) Validate ( ) error { if err := p . store . Validate ( p . charmURL ) ; err != nil { return errors . Trace ( err ) } if p . charmURL . Revision < 0 { return errors . Errorf ( " " ) } return nil }
Validate will attempt to validate the requirements for adding a charm to the
store.
Validate will attempt to validate the requirements for adding a charm to the store .