Skip to content

Commit

Permalink
Remove unnecessary asignment
Browse files Browse the repository at this point in the history
  • Loading branch information
cimm committed Nov 18, 2020
1 parent 75b4290 commit 980a219
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions snap/hooks/configure
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@ duration="$(snapctl get duration)"

if ! expr "$duration" : '^[0-9]*$' > /dev/null; then
echo "\"$duration\" is not a valid duration, reveting to $DEFAULT_DURATION seconds" >&2
duration="$DEFAULT_DURATION"
snapctl set duration="$duration"
snapctl set duration="$DEFAULT_DURATION"
fi

0 comments on commit 980a219

Please sign in to comment.