From 9f42f3d3adccfc8b7df5729a1c34b0eb9227c055 Mon Sep 17 00:00:00 2001 From: Gheorghe Pinzaru Date: Thu, 30 Jul 2020 15:45:12 +0300 Subject: [PATCH] lint --- src/status_im/qr_scanner/core.cljs | 7 +++---- src/status_im/router/core.cljs | 1 - src/status_im/ui/screens/add_new/new_chat/events.cljs | 3 +-- src/status_im/ui/screens/home/sheet/views.cljs | 4 ++-- src/status_im/utils/universal_links/core.cljs | 4 +--- 5 files changed, 7 insertions(+), 12 deletions(-) diff --git a/src/status_im/qr_scanner/core.cljs b/src/status_im/qr_scanner/core.cljs index 967613be97a6..cfa1e3146a8a 100644 --- a/src/status_im/qr_scanner/core.cljs +++ b/src/status_im/qr_scanner/core.cljs @@ -17,9 +17,9 @@ :on-allowed #(re-frame/dispatch [:navigate-to :qr-scanner opts]) :on-denied (fn [] (utils/set-timeout - #(utils/show-popup (i18n/label :t/error) - (i18n/label :t/camera-access-error)) - 50))}}) + #(utils/show-popup (i18n/label :t/error) + (i18n/label :t/camera-access-error)) + 50))}}) (fx/defn set-qr-code {:events [:qr-scanner.callback/scan-qr-code-success]} @@ -35,7 +35,6 @@ (when-let [handler (:cancel-handler opts)] (fn [] {:dispatch [handler opts]})))) - (fx/defn handle-browse [cofx {:keys [domain]}] (fx/merge cofx {:browser/show-browser-selection domain} diff --git a/src/status_im/router/core.cljs b/src/status_im/router/core.cljs index becee75c1d38..62e70716f663 100644 --- a/src/status_im/router/core.cljs +++ b/src/status_im/router/core.cljs @@ -86,7 +86,6 @@ (cb {:type :private-chat :error :invalid-chat-id})))) - (defn match-browser [{:keys [domain]} cb] (if (security/safe-link? domain) (cb {:type :browser diff --git a/src/status_im/ui/screens/add_new/new_chat/events.cljs b/src/status_im/ui/screens/add_new/new_chat/events.cljs index 1ecdbe6a492c..0e62c2eeaeaa 100644 --- a/src/status_im/ui/screens/add_new/new_chat/events.cljs +++ b/src/status_im/ui/screens/add_new/new_chat/events.cljs @@ -2,7 +2,6 @@ (:require [clojure.string :as string] [re-frame.core :as re-frame] [status-im.ethereum.core :as ethereum] - [status-im.utils.universal-links.core :as ul] [status-im.ethereum.ens :as ens] [status-im.ethereum.resolver :as resolver] [status-im.ui.screens.add-new.new-chat.db :as db] @@ -89,7 +88,7 @@ (= type :private-chat) chat-id (= type :contact) public-key (and (= type :undefined) - public-key?) data) + public-key?) data) validation-result (db/validate-pub-key db chat-key)] (if-not validation-result (if new-contact? diff --git a/src/status_im/ui/screens/home/sheet/views.cljs b/src/status_im/ui/screens/home/sheet/views.cljs index 34031845c791..81d997f32c3c 100644 --- a/src/status_im/ui/screens/home/sheet/views.cljs +++ b/src/status_im/ui/screens/home/sheet/views.cljs @@ -56,8 +56,8 @@ (re-frame/dispatch [:bottom-sheet/hide]) ;; https://github.com/facebook/react-native/pull/26839 (js/setTimeout - #(list-selection/open-share {:message (i18n/label :t/get-status-at)}) - 250))}]]) + #(list-selection/open-share {:message (i18n/label :t/get-status-at)}) + 250))}]]) (def add-new {:content add-new-view}) diff --git a/src/status_im/utils/universal_links/core.cljs b/src/status_im/utils/universal_links/core.cljs index 8cac1a39b1c0..22a7e69ec60c 100644 --- a/src/status_im/utils/universal_links/core.cljs +++ b/src/status_im/utils/universal_links/core.cljs @@ -1,12 +1,10 @@ (ns status-im.utils.universal-links.core - (:require [clojure.string :as string] - [goog.string :as gstring] + (:require [goog.string :as gstring] [re-frame.core :as re-frame] [status-im.multiaccounts.model :as multiaccounts.model] [status-im.chat.models :as chat] [status-im.constants :as constants] [status-im.router.core :as router] - [status-im.utils.security :as security] [status-im.ui.components.react :as react] [status-im.ui.screens.add-new.new-chat.db :as new-chat.db] [status-im.navigation :as navigation]