Skip to content

Commit 752c59f

Browse files
Merge pull request #277 from XavierGeerinck/master
Linting fixes
2 parents 5db8203 + 8bbf5fb commit 752c59f

File tree

4 files changed

+16
-2
lines changed

4 files changed

+16
-2
lines changed

src/implementation/Client/DaprClient.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1010
See the License for the specific language governing permissions and
1111
limitations under the License.
1212
*/
13+
1314
import * as NodeJSUtils from "../../utils/NodeJS.util";
1415

1516
import IClientBinding from '../../interfaces/Client/IClientBinding';

src/implementation/Client/HTTPClient/HTTPClient.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ export default class HTTPClient implements IClient {
9898
}
9999

100100
async start(): Promise<void> {
101+
return;
101102
}
102103

103104
async executeWithApiVersion(apiVersion = "v1.0", url: string, params: any = {}): Promise<object | string> {
@@ -112,7 +113,7 @@ export default class HTTPClient implements IClient {
112113
* @param requiresInitialization If false, it doesn't require the Dapr sidecar to be started and might fail
113114
* @returns The result of the call
114115
*/
115-
async execute(url: string, params?: THTTPExecuteParams | undefined | null, requiresInitialization: boolean = true): Promise<object | string> {
116+
async execute(url: string, params?: THTTPExecuteParams | undefined | null, requiresInitialization = true): Promise<object | string> {
116117
if (!params || typeof params !== "object") {
117118
params = {
118119
method: "GET"

src/implementation/Server/DaprServer.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ import HTTPServerActor from './HTTPServer/actor';
3232
import { DaprClientOptions } from '../../types/DaprClientOptions';
3333
import { DaprClient } from '../..';
3434
import { Settings } from '../../utils/Settings.util';
35-
import * as NodeJSUtils from "../../utils/NodeJS.util";
3635

3736
export default class DaprServer {
3837
// App details

src/types/http/THTTPExecuteParams.type.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
/*
2+
Copyright 2022 The Dapr Authors
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
6+
http://www.apache.org/licenses/LICENSE-2.0
7+
Unless required by applicable law or agreed to in writing, software
8+
distributed under the License is distributed on an "AS IS" BASIS,
9+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10+
See the License for the specific language governing permissions and
11+
limitations under the License.
12+
*/
13+
114
import http from "http";
215
import https from "https";
316

0 commit comments

Comments
 (0)