src/renderer.js   A
last analyzed

Complexity

Total Complexity 2
Complexity/F 1

Size

Lines of Code 10
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
cc 0
wmc 2
c 2
b 0
f 0
nc 1
mnd 0
bc 2
fnc 2
dl 0
loc 10
rs 10
bpm 1
cpm 1
noi 0
1
const enhancedRender = (req, res, next) => {
2
	const originalRender = res.render;
3
	res.render = function render(...args) {
4
		originalRender.apply(this, args);
5
		res.rendered = true;
6
	};
7
	next();
8
};
9
10
export default enhancedRender;
11