summaryrefslogtreecommitdiff
path: root/lib/zbase32.rb
diff options
context:
space:
mode:
authorazul <azul@riseup.net>2017-09-23 15:11:20 +0000
committerazul <azul@riseup.net>2017-09-23 15:11:20 +0000
commitfac140a8ff76e98c275194845125d4c97f4ba07b (patch)
tree08ffafb2c70935892e975704911080b9da84e391 /lib/zbase32.rb
parent787287318c54b019a12ef79525c9f5b10d93724d (diff)
parent8ac6bb8492c9a3b9ec5d7b5bf2b35907a1f8c332 (diff)
Merge branch 'rubocop' into 'master'
Style fixes based on Rubocop See merge request leap/nickserver!19
Diffstat (limited to 'lib/zbase32.rb')
-rw-r--r--lib/zbase32.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/zbase32.rb b/lib/zbase32.rb
index 754213d..3f61477 100644
--- a/lib/zbase32.rb
+++ b/lib/zbase32.rb
@@ -1,5 +1,4 @@
module ZBase32
-
ALPHABET = 'ybndrfg8ejkmcpqxot1uwisza345h769'.split('').freeze
def self.encode32(bin_string)
@@ -13,7 +12,6 @@ module ZBase32
ALPHABET.index(char).to_s(2).rjust(5, '0')
end.join
bin[0, (8 * (bin.length / 8))]
- # .sub /10*$/ ,'1'
+ # .sub /10*$/ ,'1'
end
-
end