Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Don't use two conditions when one suffices

  • Loading branch information...
commit dbd26540f4928b1d4b6b3935b1846d65071c4589 1 parent 2e778fe
@lolilolicon authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 ffcast.bash
View
4 ffcast.bash
@@ -366,11 +366,11 @@ if (( i )); then
IFS=' ,' read _x _y x_ y_ <<< "$corners"
fi
-if ! (( w = rootw - _x - x_ )) || (( w < 0 )); then
+if ! (( (w = rootw - _x - x_) > 0 )); then
error 'region: invalid width: %d' "$w"
exit 1
fi
-if ! (( h = rooth - _y - y_ )) || (( h < 0 )); then
+if ! (( (h = rooth - _y - y_) > 0 )); then
error 'region: invalid height: %d' "$h"
exit 1
fi
Please sign in to comment.
Something went wrong with that request. Please try again.