Project

General

Profile

« Previous | Next » 

Revision 25691fff

Added by Dmitri Dolguikh over 9 years ago

fixes #7660: fixes first bunch of rubocop warnings

View differences:

lib/proxy/validations.rb
def valid_mac? mac
return false if mac.nil?
return true if mac =~ MAC_REGEXP_48BIT or mac =~ MAC_REGEXP_64BIT
return true if mac =~ MAC_REGEXP_48BIT || mac =~ MAC_REGEXP_64BIT
false
end

Also available in: Unified diff