lint fixes

This commit is contained in:
Timo 2020-12-02 10:15:26 +02:00
parent f5f5e27f1f
commit 325e3ebbd9
2 changed files with 4 additions and 4 deletions

View File

@ -87,7 +87,7 @@ export class DictionaryOverviewScreenComponent {
}
}
for (let i of this.changedLines) {
for (const i of this.changedLines) {
this.activeMarkers.push(this.editorComponent.getEditor().getSession().addMarker(new Range(i, 0, i, 1), 'changed-row-marker', 'fullLine'));
}
}

View File

@ -273,16 +273,16 @@ export class DictionaryControllerService {
}
// to determine the Accept header
let httpHeaderAccepts: string[] = [];
const httpHeaderAccepts: string[] = [];
const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);
if (httpHeaderAcceptSelected != undefined) {
if (httpHeaderAcceptSelected !== undefined) {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes: string[] = ['application/json'];
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected != undefined) {
if (httpContentTypeSelected !== undefined) {
headers = headers.set('Content-Type', httpContentTypeSelected);
}