Skip to content

Commit 46fd652

Browse files
Refactor visit syntax in verticalTabs.js for improved clarity (#42)
1 parent 40c5064 commit 46fd652

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

jaseci-org/lib/data/verticalTabs.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,11 @@ with entry {
6767
}
6868
6969
impl Library.search_shelves {
70-
shelves = [self --> Shelf];
71-
visit shelves; # No loops, just visit
70+
visit [-->(\`?Shelf)]; # No loops, just visit
7271
}
7372
7473
impl Shelf.check_books {
75-
found_book = [self --> (\`?Book)](
74+
found_book = [self -->(\`?Book)](
7675
?title == visitor.book_needed, available == True
7776
);
7877
@@ -86,8 +85,7 @@ impl Shelf.check_books {
8685
}
8786
8887
impl borrower.find_book {
89-
libraries = [here --> Library];
90-
visit libraries;
88+
visit [-->(\`?Library)];
9189
}`,
9290
},
9391
{

0 commit comments

Comments
 (0)