Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4617bcd

Browse files
committed
Finish linting
1 parent f605737 commit 4617bcd

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

src/cli.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import * as sade from "sade";
22
import handler from "./handler";
33
import addTemplates from "./template";
44

5-
// eslint-disable-next-line @typescript-eslint/no-var-requires -- Needed in order to not copy over package.json and make new src directory inside of dist
65
const { version, description } = require("../package.json");
76

87
let cli = sade("github-run-script")

src/handler.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ async function spawn(command: string, args?: string[], options?: object) {
1717
return childProcess;
1818
}
1919

20-
2120
function terminateSpawnCache(signal: NodeJS.Signals = "SIGTERM") {
2221
for (const childProcess of spawnedProcesses.keys()) {
2322
childProcess.kill(signal);
@@ -118,7 +117,6 @@ export default async function handler(script: string, flags: CliFlags) {
118117
);
119118
} finally {
120119
if (flags.terminate ?? true) {
121-
122120
terminateSpawnCache(flags.signal as NodeJS.Signals);
123121
}
124122

src/template.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ import templates from "./templates";
44

55
function generateCLIFromTemplate(sade: Sade, template: Template): Sade {
66
const argString: string = template.arguments
7-
? ` ${
8-
template.arguments
7+
? ` ${template.arguments
98
.map((arg) => (typeof arg === "string" ? { name: arg } : arg))
109
.map((arg) => `<${arg.name}>`)
1110
.join(" ")}`

0 commit comments

Comments
 (0)