Skip to content

Commit 5037d80

Browse files
authored
try node 20 for ci (#2275)
* try node 20 for ci * lint
1 parent d8437b4 commit 5037d80

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ jobs:
118118
working-directory: 'view_component'
119119
- uses: actions/setup-node@v4
120120
with:
121-
node-version: 16
121+
node-version: 20
122122
cache: 'npm'
123123
cache-dependency-path: 'primer_view_components/package-lock.json'
124124
- name: Build and test with Rake

lib/view_component/slotable.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ def set_slot(slot_name, slot_definition = nil, *args, &block)
431431
def set_polymorphic_slot(slot_name, poly_type = nil, *args, &block)
432432
slot_definition = self.class.registered_slots[slot_name]
433433

434-
if !slot_definition[:collection] && (defined?(@__vc_set_slots) && @__vc_set_slots[slot_name])
434+
if !slot_definition[:collection] && defined?(@__vc_set_slots) && @__vc_set_slots[slot_name]
435435
raise ContentAlreadySetForPolymorphicSlotError.new(slot_name)
436436
end
437437

0 commit comments

Comments
 (0)