From f5343fb8cb87ed4cfae1ebd48b6384c07825ce06 Mon Sep 17 00:00:00 2001 From: phone Date: Wed, 27 Dec 2023 15:44:28 +0300 Subject: [PATCH] Parse : Remove redundant checks. --- .config/bash/module/Parse.sh | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/.config/bash/module/Parse.sh b/.config/bash/module/Parse.sh index 4fd7c23..a58c9e1 100644 --- a/.config/bash/module/Parse.sh +++ b/.config/bash/module/Parse.sh @@ -17,12 +17,6 @@ function parse_pascal() { local parts=($(_get_parts ${*})) local result - # If already in Pascal. - if [[ "${#parts[@]}" = 1 ]]; then - echo "${parts[*]^}" - return 0 - fi - for part in "${parts[@]}"; do local word="${part,,}" word="${word^}" @@ -69,12 +63,6 @@ function parse_camel() { local parts=($(_get_parts ${*})) local result - # If already in camel. - if [[ "${#parts[@]}" = 1 ]]; then - echo "${parts[*],}" - return 0 - fi - for part in "${parts[@]}"; do local word="${part,,}" word="${word^}"