From c64fd9b62dc40008898b238dc5061490594e2ca7 Mon Sep 17 00:00:00 2001 From: sinanmohd <sinan@firemail.cc> Date: Mon, 20 Mar 2023 17:17:12 +0530 Subject: clean: use logical operators instead of if --- pirowatch | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'pirowatch') diff --git a/pirowatch b/pirowatch index 9ac6eae..02f6198 100755 --- a/pirowatch +++ b/pirowatch @@ -55,9 +55,7 @@ stream() { webtorrent --mpv -o "$cache_dir" --torrent-port "$torrent_port" --dht-port "$dht_port" "$1" --select "$2" else webtorrent --mpv -o "$cache_dir" --torrent-port "$torrent_port" --dht-port "$dht_port" "$1" - fi - - [ "$?" != 0 ] && + fi || die "webtorrent failed to play" } -- cgit v1.2.3