From bd76773412e609284b5cb372ed8545bb9705f1ea Mon Sep 17 00:00:00 2001 From: Ash Wilson Date: Tue, 20 Jun 2017 14:48:39 -0400 Subject: [PATCH] :shirt: lint lint lint --- src/native-watcher-registry.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/native-watcher-registry.js b/src/native-watcher-registry.js index e78c87c9c..c0b7d7c0d 100644 --- a/src/native-watcher-registry.js +++ b/src/native-watcher-registry.js @@ -19,7 +19,7 @@ class RegistryNode { // Returns: A {ParentResult} if the exact requested directory or a parent directory is being watched, a // {ChildrenResult} if one or more child paths are being watched, or a {MissingResult} if no relevant watchers // exist. - lookup(pathSegments) { + lookup (pathSegments) { if (pathSegments.length === 0) { return new ChildrenResult(this.leaves()) } @@ -40,7 +40,7 @@ class RegistryNode { // // Returns: The root of a new tree with the {RegistryWatcherNode} inserted at the correct location. Callers should // replace their node references with the returned value. - insert(pathSegments, leaf) { + insert (pathSegments, leaf) { if (pathSegments.length === 0) { return leaf } @@ -57,7 +57,7 @@ class RegistryNode { // Private: Discover all {RegistryWatcherNode} instances beneath this tree node. // // Returns: A possibly empty {Array} of {RegistryWatcherNode} instances that are the descendants of this node. - leaves() { + leaves () { const results = [] for (const p of Object.keys(this.children)) { results.push(...this.children[p].leaves()) @@ -87,14 +87,14 @@ class RegistryWatcherNode { // * `pathSegments` filesystem path of a new {Watcher} already split into an Array of directory names. // // Returns: A {ParentResult} referencing this node. - lookup(pathSegments) { + lookup (pathSegments) { return new ParentResult(this, pathSegments) } // Private: Discover this {RegistryWatcherNode} instance. // // Returns: An {Array} containing this node. - leaves() { + leaves () { return [this] } }