mirror of https://github.com/databricks/cli.git
Remove redundant lines from PrepareReplacementsUser (#2130)
They are not necessary because they are added below. Also, they will cause a crash if u.Name is nil.
This commit is contained in:
parent
8234604cad
commit
a6412e4334
|
@ -185,8 +185,6 @@ func PrepareReplacementsUser(t testutil.TestingT, r *ReplacementsContext, u iam.
|
|||
u.DisplayName,
|
||||
u.UserName,
|
||||
iamutil.GetShortUserName(&u),
|
||||
u.Name.FamilyName,
|
||||
u.Name.GivenName,
|
||||
}
|
||||
if u.Name != nil {
|
||||
names = append(names, u.Name.FamilyName)
|
||||
|
|
Loading…
Reference in New Issue