Skip to content

Commit e16d16a

Browse files
committed
convert FastbootResponse to es6 class
1 parent 46cae1d commit e16d16a

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/fastboot-response.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1+
'use strict';
2+
13
var FastBootHeaders = require('./fastboot-headers');
24

3-
function FastbootResponse(response) {
4-
this.headers = new FastBootHeaders(response._headers);
5-
this.statusCode = 200;
5+
class FastbootResponse {
6+
constructor(response) {
7+
this.headers = new FastBootHeaders(response._headers);
8+
this.statusCode = 200;
9+
}
610
}
711

812
module.exports = FastbootResponse;

0 commit comments

Comments
 (0)