From 274e1010c4633fa2b930cce14c32c552aff00dc9 Mon Sep 17 00:00:00 2001
From: Thisari Muthuwahandi <thisari.muthuwahandi@mni.thm.de>
Date: Sun, 14 Apr 2019 19:25:23 +0200
Subject: [PATCH] Add missing return type 'void' to methods

---
 .../_dialogs/comment-export/comment-export.component.ts   | 8 ++++----
 src/app/services/http/comment.service.ts                  | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/app/components/creator/_dialogs/comment-export/comment-export.component.ts b/src/app/components/creator/_dialogs/comment-export/comment-export.component.ts
index f94718452..3cc2197f1 100644
--- a/src/app/components/creator/_dialogs/comment-export/comment-export.component.ts
+++ b/src/app/components/creator/_dialogs/comment-export/comment-export.component.ts
@@ -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);
diff --git a/src/app/services/http/comment.service.ts b/src/app/services/http/comment.service.ts
index bf2ca6367..5eafa91d0 100644
--- a/src/app/services/http/comment.service.ts
+++ b/src/app/services/http/comment.service.ts
@@ -70,7 +70,7 @@ export class CommentService extends BaseHttpService {
     );
   }
 
-  exportButtonClicked(state: boolean) {
+  exportButtonClicked(state: boolean): void {
     this.exportButton.next(state);
   }
 }
-- 
GitLab