From c64b5c3d8c681064b4420f49ec16aadcd033937e Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Thu, 24 May 2018 16:55:10 +1000 Subject: [PATCH] general: clean up --- neofetch | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/neofetch b/neofetch index 82b0b5c8..0785c022 100755 --- a/neofetch +++ b/neofetch @@ -3910,10 +3910,7 @@ info() { prin() { # If $2 doesn't exist we format $1 as info. if [[ "$(trim "$1")" && "$2" ]]; then - if [[ "$json" ]]; then - printf " %b\n" "\"${1}\": \"${2}\"," - return - fi + [[ "$json" ]] && { printf " %s\n" "\"${1}\": \"${2}\","; return; } string="${1}${2:+: $2}" else