From 71a16606db779a9c6f085dd9d1685a3f438651c2 Mon Sep 17 00:00:00 2001 From: Jeremy Yin Date: Tue, 18 Jun 2019 21:27:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E5=8A=A0=E7=AE=80=E4=BE=BF=E7=9A=84?= =?UTF-8?q?=E6=B3=A8=E5=85=A5=E6=96=B9=E6=B3=95=EF=BC=8C=E4=B8=8D=E7=94=A8?= =?UTF-8?q?=E4=BA=8B=E5=85=88=E5=A3=B0=E6=98=8E=E5=8F=8A=E4=BD=BF=E7=94=A8?= =?UTF-8?q?this=E6=9D=A5=E8=B5=8B=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/posts/posts.controller.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/posts/posts.controller.ts b/src/posts/posts.controller.ts index 515550f..57096e5 100644 --- a/src/posts/posts.controller.ts +++ b/src/posts/posts.controller.ts @@ -5,12 +5,8 @@ import { DemoService } from './providers/demo/demo.service' @Controller('posts') export class PostsController { - private readonly demoService; - - constructor(demoService: DemoService) { - this.demoService = demoService - } + constructor(private readonly demoService: DemoService) {} @Get() index() {