mirror of
https://github.com/usual2970/certimate.git
synced 2025-08-12 20:31:46 +00:00
refactor: clean code
This commit is contained in:
@@ -73,12 +73,7 @@ func NewWithApplyNode(node *domain.WorkflowNode) (Applicant, error) {
|
||||
if access, err := accessRepo.GetById(context.Background(), nodeConfig.ProviderAccessId); err != nil {
|
||||
return nil, fmt.Errorf("failed to get access #%s record: %w", nodeConfig.ProviderAccessId, err)
|
||||
} else {
|
||||
accessConfig, err := access.UnmarshalConfigToMap()
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("failed to unmarshal access config: %w", err)
|
||||
}
|
||||
|
||||
options.ProviderAccessConfig = accessConfig
|
||||
options.ProviderAccessConfig = access.Config
|
||||
}
|
||||
|
||||
certRepo := repository.NewCertificateRepository()
|
||||
|
Reference in New Issue
Block a user