Skip to content

Commit

Permalink
remove unneeded variable, more sensable indentation regardless of wha…
Browse files Browse the repository at this point in the history
…t rubocop says
  • Loading branch information
vtcifer committed Sep 13, 2024
1 parent 762bc33 commit 9dd6fd2
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions script-watch.lic
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ class ScriptWatch
# hide myself
@ignored_scripts.push(Script.current.name)

@script_list = []
@script_output = ''
_respond("<streamWindow id='LichScripts' title='LichScripts' location='center' save='true' resident='true' />")
_respond("<exposeStream id='LichScripts'/>")
Expand All @@ -46,8 +45,6 @@ class ScriptWatch
def output_scripts()
temp_list = @display_hidden ? Script.running + Script.hidden : Script.running

@script_list = temp_list

temp_output = temp_list.select { |s| !(@ignored_scripts.include?(s.name)) }
.collect { |s|
output = ""
Expand Down Expand Up @@ -82,8 +79,8 @@ class ScriptWatch
end

output
}
.join(@script_separator)
}
.join(@script_separator)

# attempt to short circuit to keep from sending unneeded xml, still update every 300s (5 min)
return if @script_output == temp_output && ((Time.now - @last_update) < 300)
Expand Down

0 comments on commit 9dd6fd2

Please sign in to comment.