mirror of
https://github.com/glitch-soc/mastodon.git
synced 2024-11-23 16:44:04 -05:00
Fix Style/SelfAssignment
cop (#28171)
This commit is contained in:
parent
f70f39dd04
commit
a98fccf84e
@ -99,7 +99,7 @@ module Mastodon::Snowflake
|
|||||||
def id_at(timestamp, with_random: true)
|
def id_at(timestamp, with_random: true)
|
||||||
id = timestamp.to_i * 1000
|
id = timestamp.to_i * 1000
|
||||||
id += rand(1000) if with_random
|
id += rand(1000) if with_random
|
||||||
id = id << 16
|
id <<= 16
|
||||||
id += rand(2**16) if with_random
|
id += rand(2**16) if with_random
|
||||||
id
|
id
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user