Skip to content

Commit

Permalink
refactor: remove unnecessary arguments and parentheses
Browse files Browse the repository at this point in the history
Fix rubocop Style/SuperCallWithoutParens:
Call `super` without arguments and parentheses when the signature is
identical.
  • Loading branch information
iberianpig committed Aug 13, 2024
1 parent 7d01fff commit e915432
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/fusuma/plugin/buffers/gesture_buffer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class GestureBuffer < Buffer
DEFAULT_SECONDS_TO_KEEP = 100

def initialize(*args)
super(*args)
super
@cache = {}
@cache_select_by = {}
@cache_sum10 = {}
Expand Down
2 changes: 1 addition & 1 deletion lib/fusuma/plugin/detectors/detector.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module Detectors
# Inherite this base
class Detector < Base
def initialize(*args)
super(*args)
super
@tag = self.class.tag
@type = self.class.type
end
Expand Down
2 changes: 1 addition & 1 deletion lib/fusuma/plugin/detectors/hold_detector.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class HoldDetector < Detector
BASE_THRESHOLD = 0.7

def initialize(*args)
super(*args)
super
@timer = Inputs::TimerInput.instance
end

Expand Down
2 changes: 1 addition & 1 deletion lib/fusuma/plugin/inputs/input.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module Inputs
# @abstract Subclass and override {#io} to implement
class Input < Base
def initialize(*args)
super(*args)
super
@tag = self.class.name.split("Inputs::").last.underscore
end

Expand Down

0 comments on commit e915432

Please sign in to comment.