From 2f38b5d4d56ac7a959184d60ab64c69784e143ae Mon Sep 17 00:00:00 2001
From: Jeffrey Phillips Freeman <jeffrey.freeman@syncleus.com>
Date: Sat, 1 Oct 2016 17:30:33 -0400
Subject: [PATCH] Corrected an improper use of &.

---
 lib/aprs/aprs_kiss.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/aprs/aprs_kiss.rb b/lib/aprs/aprs_kiss.rb
index 63a935c..5d7841d 100644
--- a/lib/aprs/aprs_kiss.rb
+++ b/lib/aprs/aprs_kiss.rb
@@ -63,7 +63,7 @@ module Aprs
 
             (2...start).each do |i|
                 path = identity_as_string(extract_callsign(raw_frame[i * 7..-1]))
-                if path&.length
+                if path and path.length > 0
                     if raw_frame[i * 7 + 6] & 0x80 != 0
                         full_path << [path, '*'].join
                     else
-- 
GitLab