Skip to content

Commit

Permalink
Handle some TODOs
Browse files Browse the repository at this point in the history
  • Loading branch information
mburumaxwell committed Jan 24, 2023
1 parent dabc8e7 commit b0eaf7f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion extension/task/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import parseConfigFile from "./utils/parseConfigFile";

async function run() {
try {
let useConfigFile: boolean = tl.getBoolInput("useConfigFile", true); // TODO: find a way to check if specified
let useConfigFile: boolean = tl.getBoolInput("useConfigFile", true);
if (!useConfigFile) {
throw new Error(
`
Expand Down
6 changes: 1 addition & 5 deletions extension/task/utils/convertPlaceholder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,7 @@ function extractPlaceholder(input: string) {
return matchAll(input, regexp);
}

function matchAll(
target: string,
rExp: RegExp,
matches: Array<RegExpExecArray> = []
) {
function matchAll(target: string, rExp: RegExp, matches: Array<RegExpExecArray> = []) {
const matchIfAny = rExp.exec(target);
matchIfAny && matches.push(matchIfAny) && matchAll(target, rExp, matches);
return matches;
Expand Down

0 comments on commit b0eaf7f

Please sign in to comment.