chore: fix eslint issues (#9017)

This commit is contained in:
Martin Guillon
2020-11-11 17:46:36 +01:00
committed by GitHub
parent 05faa867d0
commit c1f231d88e
171 changed files with 1607 additions and 1550 deletions

View File

@@ -191,7 +191,7 @@ function buildJavaOptions(options: httpModule.HttpRequestOptions) {
const arrayList = new java.util.ArrayList<org.nativescript.widgets.Async.Http.KeyValuePair>();
const pair = org.nativescript.widgets.Async.Http.KeyValuePair;
for (let key in options.headers) {
for (const key in options.headers) {
arrayList.add(new pair(key, options.headers[key] + ''));
}

View File

@@ -87,7 +87,7 @@ export function request(options: httpModule.HttpRequestOptions): Promise<httpMod
urlRequest.setValueForHTTPHeaderField(USER_AGENT, USER_AGENT_HEADER);
if (options.headers) {
for (let header in options.headers) {
for (const header in options.headers) {
urlRequest.setValueForHTTPHeaderField(options.headers[header] + '', header);
}
}