Fix address null bug.

This commit is contained in:
Yang Luo
2021-08-27 23:43:43 +08:00
parent c6b2106c94
commit eefcfd8440
2 changed files with 4 additions and 3 deletions

View File

@ -91,8 +91,8 @@ func TestGetMaskedUsers(t *testing.T) {
}{
{
name: "1",
args: args{users: []*User{{Password: "casdoor"},{Password: "casbin"}}},
want: []*User{{Password: "***"},{Password: "***"}},
args: args{users: []*User{{Password: "casdoor"}, {Password: "casbin"}}},
want: []*User{{Password: "***"}, {Password: "***"}},
},
}
for _, tt := range tests {
@ -102,4 +102,4 @@ func TestGetMaskedUsers(t *testing.T) {
}
})
}
}
}