Skip to content
Snippets Groups Projects
Commit 274e1010 authored by Thisari Muthuwahandi's avatar Thisari Muthuwahandi
Browse files

Add missing return type 'void' to methods

parent 95a19609
3 merge requests!171SWTP Comment Project,!170Fix linter in pipe,!169WebSocket Connector
......@@ -45,11 +45,11 @@ export class CommentExportComponent implements OnInit {
return this.currentButton = change.value;
}
onNoClick() {
onNoClick(): void {
this.dialogRef.close();
}
exportJson(date: string) {
exportJson(date: string): void {
const jsonComments = JSON.parse(JSON.stringify(this.comments));
jsonComments.forEach(element => {
delete element.id;
......@@ -65,7 +65,7 @@ export class CommentExportComponent implements OnInit {
link.click();
}
exportCsv(delimiter: string, date: string) {
exportCsv(delimiter: string, date: string): void {
let csv: string;
let keyFields = '';
let valueFields = '';
......@@ -83,7 +83,7 @@ export class CommentExportComponent implements OnInit {
link.click();
}
onExport() {
onExport(): void {
const date = new Date();
const dateString = date.getFullYear() + '_' + ('0' + (date.getMonth() + 1)).slice(-2) + '_' + ('0' + date.getDate()).slice(-2);
const timeString = ('0' + date.getHours()).slice(-2) + ('0' + date.getMinutes()).slice(-2) + ('0' + date.getSeconds()).slice(-2);
......
......@@ -70,7 +70,7 @@ export class CommentService extends BaseHttpService {
);
}
exportButtonClicked(state: boolean) {
exportButtonClicked(state: boolean): void {
this.exportButton.next(state);
}
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment