Passed
Push — master ( 2a550f...39419e )
by Zhenyu
01:34
created

src/renderer.js   A

Complexity

Total Complexity 2
Complexity/F 1

Size

Lines of Code 10
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

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