ES6-ify
This commit is contained in:
@@ -13,9 +13,9 @@ export default class HTTPResponse {
|
||||
get data() {
|
||||
if (!this._data) {
|
||||
try {
|
||||
this._data = JSON.parse(this.text);
|
||||
this._data = JSON.parse(this.text);
|
||||
} catch (e) {}
|
||||
}
|
||||
return this._data;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user