Skip to content

Commit

Permalink
Merge pull request #522 from elanthia-online/claim.rb-rubocop-cleanup
Browse files Browse the repository at this point in the history
chore: claim.rb rubocop cleanup
  • Loading branch information
mrhoribu authored Jan 4, 2024
2 parents 943b1a6 + d9b7e88 commit 14a4931
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions lib/claim.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@

module Lich
module Claim
Lock = Mutex.new
@claimed_room ||= nil
@last_room ||= nil
@mine ||= false
@claimed_room ||= nil
@last_room ||= nil
@mine ||= false
@buffer = []
@others = []
@timestamp = Time.now
Expand Down Expand Up @@ -48,8 +47,8 @@ def self.info
['Claim.last_room', Claim.last_room, 'The last room checked by Claim, regardless of status'],
['Claim.others', Claim.others.join("\n"), "Other characters in the room\npotentially less grouped characters"]]
info_table = Terminal::Table.new :headings => ['Property', 'Value', 'Description'],
:rows => rows,
:style => {:all_separators => true}
:rows => rows,
:style => { :all_separators => true }
Lich::Messaging.mono(info_table.to_s)
end

Expand Down Expand Up @@ -77,7 +76,7 @@ def self.members

def self.clustered
begin
return [] unless defined? Cluster
return [] unless defined? Cluster
Cluster.connected
rescue
return []
Expand Down Expand Up @@ -105,6 +104,5 @@ def self.parser_handle(nav_rm, pcs)
Lock.unlock if Lock.owned?
end
end

end
end
end

0 comments on commit 14a4931

Please sign in to comment.