Error code standardization

This commit is contained in:
skiffer-git
2023-01-17 15:28:25 +08:00
parent ffd306f25c
commit 87d0e296c1
4 changed files with 12 additions and 25 deletions
+2 -2
View File
@@ -122,7 +122,7 @@ func RemoveDuplicateElement(idList []string) []string {
return result
}
func IsRepeatStringSlice(arr []string) bool {
func IsDuplicateStringSlice(arr []string) bool {
t := make(map[string]struct{})
for _, s := range arr {
if _, ok := t[s]; ok {
@@ -133,6 +133,6 @@ func IsRepeatStringSlice(arr []string) bool {
return false
}
func IsRepeatID(args ...interface{}) bool {
func IsDuplicateID(args ...interface{}) bool {
return false
}