Passed
Pull Request — master (#2)
by André
01:18
created

configuration.js ➔ ???   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 9
c 0
b 0
f 0
nc 1
dl 0
loc 12
rs 9.95
nop 1
1
'use strict'
2
3
module.exports = {
4
	mqtt: (input) => {
5
		return {
6
			username: input.source.username,
7
			password: input.source.password,
8
			port: input.source.port,
9
			qos: input.params.qos,
10
			will: {
11
				topic: input.source.topic,
12
				payload: input.params.payload
13
			}
14
		}
15
	}
16
}
17