Skip to content
This repository has been archived by the owner on Mar 8, 2022. It is now read-only.

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
apamildner committed Apr 15, 2021
1 parent 25eb0a5 commit 756838e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions auth0/resource_auth0_guardian.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func updateGuardian(d *schema.ResourceData, m interface{}) (err error) {
}
}
//TODO: Extend for other MFA types
if _, ok := d.GetOk("phone"); ok || hasPhoneBlockPresentInNewState(d) {
if _, ok := d.GetOk("phone"); ok || hasPhoneBlockPresentInNewState(d) {
api.Guardian.MultiFactor.Phone.Enable(true)
if err := configurePhone(d, api); err != nil {
return err
Expand Down Expand Up @@ -151,7 +151,7 @@ func configurePhone(d *schema.ResourceData, api *management.Management) (err err
}

mtypes := typeAssertToStringArray(Slice(md, "message_types"))
if mtypes != nil{
if mtypes != nil {
if err := api.Guardian.MultiFactor.Phone.UpdateMessageTypes(&management.PhoneMessageTypes{MessageTypes: mtypes}); err != nil {
return err
}
Expand Down

0 comments on commit 756838e

Please sign in to comment.