🎨 Improve av

This commit is contained in:
Daniel 2025-08-23 16:52:10 +08:00
parent 52fe742a8c
commit 94f8fc5b71
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
3 changed files with 13 additions and 24 deletions

View file

@ -16,7 +16,7 @@ var (
attributeViewRelationsLock = sync.Mutex{}
)
func GetSrcAvIDs(destAvID string, excludeSelfAv bool) []string {
func GetSrcAvIDs(destAvID string) []string {
attributeViewRelationsLock.Lock()
defer attributeViewRelationsLock.Unlock()
@ -41,10 +41,6 @@ func GetSrcAvIDs(destAvID string, excludeSelfAv bool) []string {
if nil == srcAvIDs {
return nil
}
if excludeSelfAv {
srcAvIDs = gulu.Str.RemoveElem(srcAvIDs, destAvID)
}
return srcAvIDs
}