diff --git a/src/babashka/impl/proxy.clj b/src/babashka/impl/proxy.clj index 6ab04e94..cade9f82 100644 --- a/src/babashka/impl/proxy.clj +++ b/src/babashka/impl/proxy.clj @@ -103,15 +103,15 @@ ["java.io.OutputStream" #{}] (proxy [java.io.OutputStream] [] - (close [] (if-let [m (get methods 'close)] - (m this) - (proxy-super close))) - (flush [] (if-let [m (get methods 'flush)] - (m this) - (proxy-super flush))) + (close [] (when-let [m (get methods 'close)] + (m this))) + (flush [] (when-let [m (get methods 'flush)] + (m this))) (write - ([b] ((method-or-bust methods 'write) this b)) - ([b off len] ((method-or-bust methods 'write) this b off len)))) + ([b] + ((method-or-bust methods 'write) this b)) + ([b off len] + ((method-or-bust methods 'write) this b off len)))) , ;; keep this for merge friendliness )))