mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Improve av
This commit is contained in:
parent
52fe742a8c
commit
94f8fc5b71
3 changed files with 13 additions and 24 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue