Skip to content

Commit

Permalink
update naming
Browse files Browse the repository at this point in the history
  • Loading branch information
mattseddon committed Jan 4, 2023
1 parent cdd6a02 commit c5f405a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions extension/src/vscode/inputBox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const getValidInput = (
value: options?.value
})

const isValid = (
const isPositiveInteger = (
input: string | undefined,
includeZero: boolean | undefined
): boolean => {
Expand All @@ -47,8 +47,8 @@ export const getPositiveIntegerInput = async (
): Promise<string | undefined> => {
const input = await getValidInput(
title,
val => {
if (isValid(val, includeZero)) {
input => {
if (isPositiveInteger(input, includeZero)) {
return ''
}

Expand Down

0 comments on commit c5f405a

Please sign in to comment.