mirror of
https://gitea.invidious.io/iv-org/shard-radix.git
synced 2024-08-15 00:43:21 +00:00
Use Crystal's shortcut to assign variables
This commit is contained in:
parent
ca41d21294
commit
9e3316c93f
1 changed files with 1 additions and 2 deletions
|
@ -88,8 +88,7 @@ module Radix
|
||||||
# node.priority
|
# node.priority
|
||||||
# # => 6
|
# # => 6
|
||||||
# ```
|
# ```
|
||||||
def key=(value : String)
|
def key=(@key : String)
|
||||||
@key = value
|
|
||||||
@priority = compute_priority
|
@priority = compute_priority
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue