Skip to content

Commit 674114e

Browse files
committed
style) add brackets
1 parent d63039d commit 674114e

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

packages/binding.template/spec/foreachBehaviors.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -944,7 +944,9 @@ describe('Binding: Foreach', function () {
944944
it('Can modify the set of top-level nodes in a foreach loop', function () {
945945
options.bindingProviderInstance.preprocessNode = function (node) {
946946
// Replace <data /> with <span data-bind="text: $data"></span>
947-
if (!(node instanceof Element)) return null
947+
if (!(node instanceof Element)) {
948+
return null
949+
}
948950

949951
if (node.tagName && node.tagName.toLowerCase() === 'data') {
950952
const newNode = document.createElement('span')

packages/binding.template/spec/templatingBehaviors.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,8 +540,9 @@ describe('Templating', function () {
540540
}
541541

542542
override nodeHasBindings(node: Node, bindingContext?: BindingContext) {
543-
if (node instanceof Element)
543+
if (node instanceof Element) {
544544
return node.tagName == 'EM' || originalBindingProvider.nodeHasBindings(node, bindingContext)
545+
}
545546
return false
546547
}
547548
override getBindingAccessors(node: Node, bindingContext?: BindingContext) {

0 commit comments

Comments
 (0)