mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-03 04:10:20 +08:00
fix: refactor functions and code (#1559)
This commit is contained in:
@ -145,7 +145,7 @@ func GetMd5Hash(text string) string {
|
||||
return hex.EncodeToString(hash[:])
|
||||
}
|
||||
|
||||
func IsStrsEmpty(strs ...string) bool {
|
||||
func IsStringsEmpty(strs ...string) bool {
|
||||
for _, str := range strs {
|
||||
if len(str) == 0 {
|
||||
return true
|
||||
|
@ -183,7 +183,7 @@ func TestIsStrsEmpty(t *testing.T) {
|
||||
}
|
||||
for _, scenery := range scenarios {
|
||||
t.Run(scenery.description, func(t *testing.T) {
|
||||
actual := IsStrsEmpty(scenery.input...)
|
||||
actual := IsStringsEmpty(scenery.input...)
|
||||
assert.Equal(t, scenery.expected, actual, "The returned value not is expected")
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user