Skip to content

Commit

Permalink
Fix errors reported by pre-commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
mauritsvanrees committed Feb 10, 2024
1 parent 6d76920 commit b30a4fd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions news/3874.internal
@@ -0,0 +1,2 @@
Fix errors reported by pre-commit.
[maurits]
6 changes: 3 additions & 3 deletions plone/app/content/browser/vocabulary.py
Expand Up @@ -262,9 +262,9 @@ def __call__(self):
items = [
{
"id": unescape(transform.scrub_html(item.value)),
"text": unescape(transform.scrub_html(item.title))
if item.title
else "",
"text": (
unescape(transform.scrub_html(item.title)) if item.title else ""
),
}
for item in results
]
Expand Down
2 changes: 1 addition & 1 deletion plone/app/content/tests/test_folder.py
Expand Up @@ -386,7 +386,7 @@ def setUp(self):
"Folder",
id=newid,
# title in reverse order
title=f"Folder {4-idx}",
title=f"Folder {4 - idx}",
)
self.bf[newid].reindexObject()

Expand Down

0 comments on commit b30a4fd

Please sign in to comment.