Skip to content

Commit 41f3b0b

Browse files
committed
chore: wip
1 parent a715de6 commit 41f3b0b

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,9 @@ node_modules
1010
updates
1111
tests/unit/coverage
1212
dist*
13+
14+
# todo: ensure Buddy auto-removes these ignored files for the developer and these files
15+
# in which case, they should be version-controlled
16+
.fleet
17+
.idea
18+
.vscode

.stacks/core/actions/src/helpers/utils.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export type ActionResult = CommandResult
2626
/**
2727
* Run an Action the Stacks way.
2828
*
29-
* @param command The action to invoke.
29+
* @param action The action to invoke.
3030
* @param options The options to pass to the command.
3131
* @returns The result of the command.
3232
*/
@@ -49,7 +49,7 @@ export async function runAction(action: string, options?: ActionOptions): Promis
4949
/**
5050
* Run Actions the Stacks way.
5151
*
52-
* @param command The action to invoke.
52+
* @param actions The actions to invoke.
5353
* @param options The options to pass to the command.
5454
* @returns The result of the command.
5555
*/
@@ -71,8 +71,5 @@ export function hasAction(action: string) {
7171
if (storage.isFile(functionsPath(`actions/${action}.ts`)))
7272
return true
7373

74-
if (storage.isFile(actionsPath(`${action}.ts`)))
75-
return true
76-
77-
return false
74+
return storage.isFile(actionsPath(`${action}.ts`))
7875
}

0 commit comments

Comments
 (0)