Signed-off-by: Felipe Contreras <felipe.contre...@gmail.com>
---
 test/T395-ruby.sh | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/test/T395-ruby.sh b/test/T395-ruby.sh
index 1d27e191..94fab106 100755
--- a/test/T395-ruby.sh
+++ b/test/T395-ruby.sh
@@ -12,10 +12,7 @@ test_ruby() {
     (
        cat <<-\EOF
        require 'notmuch'
-       $maildir = ENV['MAIL_DIR']
-       if not $maildir then
-         abort('environment variable MAIL_DIR must be set')
-       end
+       $maildir = ENV['MAIL_DIR'] || abort('MAIL_DIR not set')
        @db = Notmuch::Database.new($maildir)
        EOF
        cat
-- 
2.31.0
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-le...@notmuchmail.org

Reply via email to