Skip to content

Commit 33d1ec9

Browse files
committed
fix(ts): fix linter errors
1 parent 56f3202 commit 33d1ec9

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

src/proxy/actions/Action.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ class Action {
9595

9696
/**
9797
* Set the commit range for the action.
98-
* @param commitFrom the starting commit
99-
* @param commitTo the ending commit
98+
* @param {string} commitFrom the starting commit
99+
* @param {string} commitTo the ending commit
100100
*/
101101
setCommit(commitFrom: string, commitTo: string): void {
102102
this.commitFrom = commitFrom;
@@ -106,15 +106,15 @@ class Action {
106106

107107
/**
108108
* Set the branch for the action.
109-
* @param branch the branch
109+
* @param {string} branch the branch
110110
*/
111111
setBranch(branch: string): void {
112112
this.branch = branch;
113113
}
114114

115115
/**
116116
* Set the message for the action.
117-
* @param message the message
117+
* @param {string} message the message
118118
*/
119119
setMessage(message: string): void {
120120
this.message = message;

src/proxy/chain.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export const executeChain = async (req: any, res: any): Promise<Action> => {
4141
}
4242
}
4343
} finally {
44-
await proc.push.audit(req, action!!);
44+
await proc.push.audit(req, action!);
4545
}
4646

4747
return action;

src/proxy/processors/push-action/scanDiff.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Action, Step } from '../../actions';
22
import { getCommitConfig, getPrivateOrganizations } from '../../../config';
3-
import parseDiff, { AddChange, Change, File } from 'parse-diff';
3+
import parseDiff, { File } from 'parse-diff';
44

55
const commitConfig = getCommitConfig();
66
const privateOrganizations = getPrivateOrganizations();

src/proxy/routes/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import proxy from 'express-http-proxy';
33
import { executeChain } from '../chain';
44
import { getProxyUrl } from '../../config';
55

6+
// eslint-disable-next-line new-cap
67
const router = Router();
78

89
/**

0 commit comments

Comments
 (0)