Skip to content

Commit 34490ee

Browse files
committed
Refactoring PR
1 parent 2651ee2 commit 34490ee

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/utils/GitHelper.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as childPross from 'child_process'
1+
import * as childProcess from 'child_process'
22
import * as fs from 'fs-extra'
33
import * as path from 'path'
44
import * as git from 'simple-git/promise'
@@ -7,10 +7,10 @@ import * as uuid from 'uuid'
77
import CaptainConstants from './CaptainConstants'
88
import Logger from './Logger'
99
import Utils from './Utils'
10-
const exec = util.promisify(childPross.exec)
10+
const exec = util.promisify(childProcess.exec)
1111

1212
export default class GitHelper {
13-
static #SSH_PATH_RE = new RegExp(
13+
private static SSH_PATH_RE = new RegExp(
1414
[
1515
/^\s*/,
1616
/(?:(?<proto>[a-z]+):\/\/)?/,
@@ -127,7 +127,7 @@ export default class GitHelper {
127127

128128
// It returns a string like this "ssh://git@github.com:22/caprover/caprover-cli.git"
129129
static sanitizeRepoPathSsh(input: string) {
130-
const found = input.match(GitHelper.#SSH_PATH_RE)
130+
const found = input.match(GitHelper.SSH_PATH_RE)
131131
if (!found) {
132132
throw new Error(`Malformatted SSH path: ${input}`)
133133
}

0 commit comments

Comments
 (0)