mirror of
https://github.com/usual2970/certimate.git
synced 2025-09-01 22:11:46 +00:00
refactor: clean code
This commit is contained in:
@@ -20,8 +20,8 @@ func NewGoDaddyApplicant(option *ApplyOption) Applicant {
|
||||
}
|
||||
|
||||
func (a *godaddyApplicant) Apply() (*Certificate, error) {
|
||||
access := &domain.GodaddyAccess{}
|
||||
json.Unmarshal([]byte(a.option.Access), access)
|
||||
access := &domain.GoDaddyAccessConfig{}
|
||||
json.Unmarshal([]byte(a.option.AccessConfig), access)
|
||||
|
||||
config := godaddy.NewDefaultConfig()
|
||||
config.APIKey = access.ApiKey
|
||||
|
Reference in New Issue
Block a user