Skip to content

Commit be72c11

Browse files
committed
Lint fix
1 parent 5d9bca4 commit be72c11

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

src/react_native/fast_image.cljs

+10-4
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@
1717
[source]
1818
(cond
1919
(string? source) (string/replace-first source #":\d+" "")
20-
(:uri source) (some-> source :uri (string/replace-first #":\d+" ""))
21-
:else source))
20+
(:uri source) (some-> source
21+
:uri
22+
(string/replace-first #":\d+" ""))
23+
:else source))
2224

2325
(defn- placeholder
2426
[{:keys [style fallback-content error? loaded?]}]
@@ -61,8 +63,12 @@
6163
[old-props new-props]
6264
(let [old-props-clj (transforms/js->clj old-props)
6365
new-props-clj (transforms/js->clj new-props)
64-
old-source (some-> old-props-clj :source remove-port)
65-
new-source (some-> new-props-clj :source remove-port)]
66+
old-source (some-> old-props-clj
67+
:source
68+
remove-port)
69+
new-source (some-> new-props-clj
70+
:source
71+
remove-port)]
6672
(and (= old-source new-source)
6773
(= (dissoc old-props-clj :source) (dissoc new-props-clj :source)))))
6874

0 commit comments

Comments
 (0)