general: clean up
This commit is contained in:
parent
0f0d9aa84f
commit
c64b5c3d8c
1 changed files with 1 additions and 4 deletions
5
neofetch
5
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
|
||||
|
|
Loading…
Reference in a new issue