From 931660d31aabc888a3488242f00e54e44c121085 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Wed, 26 Oct 2016 15:38:45 +1100 Subject: [PATCH] Remove pointless if " --- neofetch | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/neofetch b/neofetch index d3350931..a1d49fff 100755 --- a/neofetch +++ b/neofetch @@ -2294,11 +2294,7 @@ scrot_upload() { ;; esac - if [ "$image_url" ]; then - printf "%s\n" "$image_url" - else - printf "%s\n" "[!] Image failed to upload" - fi + printf "%s\n" "${image_url:-'[!] Image failed to upload'}" } # }}}