While running tslint on my angular project, I encountered an error that I am having trouble understanding. The error message is: expected an assignment or function call
getInfoPrinting() {
this.imprimirService.getInfoPrinting().subscribe(
response => {
this.loading = false;
this.printingOrders = response.data;
this.totalNumberOfCharacters = 0;
this.totalNumberOfCharactersNext = 0;
if (this.printingOrders.labelPresentOrder && this.printingOrders.labelPresentOrder.lines) {
this.printingOrders.labelPresentOrder.lines.forEach(
line => {
this.totalNumberOfCharacters += line.length;
}
);
}
if (this.printingOrders.labelNextOrder && this.printingOrders.labelNextOrder.lines) {
this.printingOrders.labelNextOrder.lines.forEach(
line => {
this.totalNumberOfCharactersNext += line.length;
}
);
}
if (this.printingOrders.printing) {
this.suscribeNotifications();
}
}
), err => {
this.loading = false;
this.alertService.error(INFO_NO_EXISTEN_ORDEN_PREPARADA);
this.hasAlert = true;
};
}
The line causing the error is:
this.imprimirService.getInfoPrinting().subscribe(
Can anyone help me understand what I am doing wrong?
Appreciate your assistance.