Skip to content

Commit

Permalink
fix: bad import (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
danteay authored May 23, 2024
1 parent 9d7e4c0 commit bcf3f71
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/inputs/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import core from '@actions/core';
import { isEmpty } from '../utils/lo.js';
import isEmptyInput from 'is-empty-input';

/**
* Search and retrieve for a string input, in case that not exists return a default value
Expand All @@ -12,7 +12,7 @@ import { isEmpty } from '../utils/lo.js';
export const getString = (input, defaultValue = '') => {
let val = core.getInput(input);

if (isEmpty(val)) {
if (isEmptyInput(val)) {
return defaultValue;
}

Expand All @@ -30,11 +30,11 @@ export const getString = (input, defaultValue = '') => {
export const getBoolean = (input, defaultValue = false) => {
let val = core.getInput(input);

if (isEmpty(val)) {
if (isEmptyInput(val)) {
return defaultValue;
}

return val.toLowerCase().trim() == 'true';
return val.toLowerCase().trim() === 'true';
};

/**
Expand All @@ -48,7 +48,7 @@ export const getBoolean = (input, defaultValue = false) => {
export const getNumber = (input, defaultValue = 0) => {
let val = core.getInput(input);

if (isEmpty(val)) {
if (isEmptyInput(val)) {
return defaultValue;
}

Expand Down

0 comments on commit bcf3f71

Please sign in to comment.