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
|
||||
# # => 6
|
||||
# ```
|
||||
def key=(value : String)
|
||||
@key = value
|
||||
def key=(@key : String)
|
||||
@priority = compute_priority
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue