소스 검색

possible fix is-false/true logic

Christian Winther 1 년 전
부모
커밋
e70e13e265
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      docker/shared/root/docker/helpers.sh

+ 4 - 0
docker/shared/root/docker/helpers.sh

@@ -491,6 +491,8 @@ function show-call-stack() {
 # @see as-boolean
 function is-true() {
     as-boolean "${1:-}" && return 0
+
+    return 1
 }
 
 # @description Helper function see if $1 could be considered falsey
@@ -498,6 +500,8 @@ function is-true() {
 # @see as-boolean
 function is-false() {
     as-boolean "${1:-}" || return 0
+
+    return 1
 }
 
 # @description Helper function see if $1 could be truethy or falsey.