Skip to content

Commit

Permalink
fix: Move InvokeService variable initialization outside of the constr…
Browse files Browse the repository at this point in the history
…uctor header (#270)
  • Loading branch information
tbarlow12 authored and PIC123 committed Aug 27, 2019
1 parent fc2c8f2 commit a47e1f8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/services/invokeService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ import configConstants from "../config";

export class InvokeService extends BaseService {
public functionAppService: FunctionAppService;
private local: boolean;

public constructor(serverless: Serverless, options: Serverless.Options, private local: boolean = false) {
public constructor(serverless: Serverless, options: Serverless.Options, local: boolean = false) {
super(serverless, options, !local);
this.local = local;
if (!local) {
this.functionAppService = new FunctionAppService(serverless, options);
}
Expand Down

0 comments on commit a47e1f8

Please sign in to comment.