mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore(tslint): update tslint rules and fix errors (#5747)
* chore(tslint): fix tslint config & errors * chore(tslint): enable double quotes, whitespace, and arrow-return-shorthand rules and fix errors
This commit is contained in:
@@ -230,7 +230,7 @@ export function request(options: http.HttpRequestOptions): Promise<http.HttpResp
|
||||
function decodeResponse(raw: any, encoding?: HttpResponseEncoding) {
|
||||
let charsetName = "UTF-8";
|
||||
if (encoding === HttpResponseEncoding.GBK) {
|
||||
charsetName = 'GBK';
|
||||
charsetName = "GBK";
|
||||
}
|
||||
return raw.toString(charsetName)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user