From b6fc8cfabc89d4ffe55a0b02594ea20cfe3fe469 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lukas=20Mau=C3=9F?= <lukas.mauss@mni.thm.de>
Date: Thu, 5 Apr 2018 22:41:49 +0200
Subject: [PATCH] Fix code style

---
 src/app/services/http/room.service.ts | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/app/services/http/room.service.ts b/src/app/services/http/room.service.ts
index 1388ddfc0..9ce32ba12 100644
--- a/src/app/services/http/room.service.ts
+++ b/src/app/services/http/room.service.ts
@@ -56,26 +56,26 @@ export class RoomService extends BaseHttpService {
   }
 
   getRoom(id: string): Observable<Room> {
-    const connectionUrl = `${ this.apiUrl.base }${ this.apiUrl.rooms }/~${id}`;
+    const connectionUrl = `${ this.apiUrl.base + this.apiUrl.rooms }/~${ id }`;
     return this.http.get<Room>(connectionUrl).pipe(
-      catchError(this.handleError<Room>(`getRoom id=${id}`))
+      catchError(this.handleError<Room>(`getRoom id=${ id }`))
     );
   }
 
   addToHistory(roomId: string): void {
-    const connectionUrl = `${ this.apiUrl.base }${ this.apiUrl.user }/${this.authService.getUser().id}/roomHistory`;
+    const connectionUrl = `${ this.apiUrl.base + this.apiUrl.user }/${ this.authService.getUser().id }/roomHistory`;
     this.http.post(connectionUrl, { roomId: roomId, lastVisit: this.joinDate.getTime() }, httpOptions).subscribe(r => console.log(r));
   }
 
   getRoomById(id: string): Observable<Room> {
-    const connectionUrl = `${ this.apiUrl.base }${ this.apiUrl.rooms }/${id}`;
+    const connectionUrl = `${ this.apiUrl.base + this.apiUrl.rooms }/${ id }`;
     return this.http.get<Room>(connectionUrl).pipe(
-      catchError(this.handleError<Room>(`getRoom id=${id}`))
+      catchError(this.handleError<Room>(`getRoom id=${ id }`))
     );
   }
 
   updateRoom(updatedRoom: Room): Observable<Room> {
-    const connectionUrl = `${ this.apiUrl.base }${this.apiUrl.rooms}/~${updatedRoom.shortId}`;
+    const connectionUrl = `${ this.apiUrl.base + this.apiUrl.rooms }/~${ updatedRoom.shortId }`;
     return this.http.put(connectionUrl, updatedRoom , httpOptions).pipe(
       tap(() => ''),
       catchError(this.handleError<any>('updateRoom'))
@@ -83,7 +83,7 @@ export class RoomService extends BaseHttpService {
   }
 
   deleteRoom(room: Room): Observable<Room> {
-    const connectionUrl = `${this.apiUrl.base}${this.apiUrl.rooms}/${room.id}`;
+    const connectionUrl = `${ this.apiUrl.base + this.apiUrl.rooms }/${ room.id }`;
     return this.http.delete<Room>(connectionUrl, httpOptions).pipe(
       tap(() => ''),
       catchError(this.handleError<Room>('deleteRoom'))
-- 
GitLab