Skip to content

Commit d833d4f

Browse files
committed
Fix lint errors
1 parent f0650d6 commit d833d4f

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

nodes/config/ui_base.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ function hasProperty (obj, prop) {
2929
/**
3030
* Test whether a message has any properties other than ui_update, class, visible, enabled and _msgid
3131
* Properties with the value undefined are ignored
32-
* @param {*} msg
32+
* @param {*} msg
3333
* @returns true if other properties found
3434
*/
35-
function hasExtraProps (message) {
36-
const allowed = ['_msgid', 'ui_update', 'class', 'visible', 'enabled']
37-
const keys = Object.keys(message).filter(key => message[key] !== undefined)
35+
function hasExtraProps(message) {
36+
const allowed = ['_msgid', 'ui_update', 'class', 'visible', 'enabled']
37+
const keys = Object.keys(message).filter(key => message[key] !== undefined)
3838

39-
return keys.length > 0 && keys.some(key => !allowed.includes(key))
39+
return keys.length > 0 && keys.some(key => !allowed.includes(key))
4040
}
4141

4242
module.exports = function (RED) {

0 commit comments

Comments
 (0)