Skip to content

Commit

Permalink
Revert to Integer ctor in server.clj, and add type-hint instead
Browse files Browse the repository at this point in the history
  • Loading branch information
dpiliouras committed Mar 11, 2021
1 parent fac4d1b commit 107c0c8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
9 changes: 6 additions & 3 deletions project.clj
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
(defproject lein-ring "0.12.5"
(defproject dpiliouras/lein-ring "0.12.7-SNAPSHOT"
:description "Leiningen Ring plugin"
:url "https://github.com/weavejester/lein-ring"
:url "https://github.com/dpiliouras/lein-ring"
:scm {:name "git"
:url "https://github.com/weavejester/lein-ring"}
:url "https://github.com/dpiliouras/lein-ring"}
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/core.unify "0.5.7"]
[org.clojure/data.xml "0.0.8"]
[leinjacker "0.4.2"
:exclusions [org.clojure/core.unify]]]
:deploy-repositories [["clojars" {:url "https://clojars.org/repo"
:sign-releases false}]]

:eval-in-leiningen true)
4 changes: 2 additions & 2 deletions src/leiningen/ring/server.clj
Original file line number Diff line number Diff line change
Expand Up @@ -94,5 +94,5 @@
"Start a Ring server and open a browser."
([project]
(server-task project {}))
([project port]
(server-task project {:port (int port)})))
([project ^String port]
(server-task project {:port (Integer. port)})))

0 comments on commit 107c0c8

Please sign in to comment.