Skip to content
This repository was archived by the owner on Oct 22, 2020. It is now read-only.

Commit aaf976f

Browse files
committed
Fix some Rubocop violations
1 parent 6a7d7aa commit aaf976f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/wpxf/utility/text.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ def self.rand_alpha(length, casing = :mixed)
4040
# @return [Array] a range of alpha characters in the matching casing.
4141
def self.alpha_ranges(casing)
4242
if casing == :mixed
43-
return [*'A'..'Z', *'a'..'z']
43+
[*'A'..'Z', *'a'..'z']
4444
elsif casing == :upper
45-
return [*'A'..'Z']
45+
[*'A'..'Z']
4646
elsif casing == :lower
47-
return [*'a'..'z']
47+
[*'a'..'z']
4848
end
4949
end
5050

@@ -66,7 +66,7 @@ def self.rand_email
6666
# Generate a random month name.
6767
# @return [String] the month name.
6868
def self.rand_month
69-
%w(january february march april june july august september october november december).sample
69+
%w[january february march april june july august september october november december].sample
7070
end
7171
end
7272
end

0 commit comments

Comments
 (0)