Skip to content

Commit a0a5581

Browse files
author
Conduction Release Bot
committed
style: prettier the validator change
CI's Frontend Check (format) flagged tests/validate-register.js. Pure reflow — the multi-line if collapses to one line under @nextcloud/prettier-config. The heuristic is re-verified after the reformat, in both directions: the register passes clean, a genuine stub still warns.
1 parent 3fe5aa0 commit a0a5581

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

tests/validate-register.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -205,11 +205,7 @@ function validateRegister(file, errors, warnings) {
205205
xKeys.filter((k) => k !== 'x-openregister-seed').length > 0
206206
|| (s.authorization && typeof s.authorization === 'object'),
207207
)
208-
if (
209-
props.length > 0
210-
&& props.length <= 3
211-
&& declaresSomething === false
212-
) {
208+
if (props.length > 0 && props.length <= 3 && declaresSomething === false) {
213209
warnings.push(
214210
`${at}: only ${props.length} properties and no x-openregister-* declarations — verify this isn't a stub left by a bad merge`,
215211
)

0 commit comments

Comments
 (0)