code cleanup to pass lint and some for flake8

This commit is contained in:
Kyle Brown
2019-02-23 15:12:50 -08:00
parent 1751cce299
commit 9fbad17ed4
4 changed files with 43 additions and 46 deletions

View File

@@ -171,8 +171,7 @@ class InternalState:
return self
if (
changed_key not in self.tap_dance_counts or
not self.tap_dance_counts[changed_key]
changed_key not in self.tap_dance_counts or not self.tap_dance_counts[changed_key]
):
self.tap_dance_counts[changed_key] = 1
self.set_timeout(self.config.tap_time, lambda: self._end_tap_dance(changed_key))
@@ -257,8 +256,7 @@ class InternalState:
for key in keys_pressed:
if (
self.config.leader_mode == LeaderMode.ENTER_ACTIVE and
key == KC.ENT
self.config.leader_mode == LeaderMode.ENTER_ACTIVE and key == KC.ENT
):
self._handle_leader_sequence()
break