Skip to content

Commit

Permalink
(maint) use schema/maybe instead of schema/pred nil?
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff McCune committed Jun 4, 2015
1 parent ef931c9 commit 1813197
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion src/clj/puppetlabs/services/jruby/jruby_puppet_core.clj
Expand Up @@ -185,7 +185,7 @@
argv (into-array String (concat ["-rjar-dependencies"] args))]
(.run main argv)))

(schema/defn ^:always-validate cli-run! :- jruby-schemas/JRubyMainStatusOrNil
(schema/defn ^:always-validate cli-run! :- (schema/maybe jruby-schemas/JRubyMainStatus)
"Run a JRuby CLI command, e.g. gem, irb, etc..."
[config :- {schema/Keyword schema/Any}
command :- schema/Str
Expand Down
4 changes: 0 additions & 4 deletions src/clj/puppetlabs/services/jruby/jruby_puppet_schemas.clj
Expand Up @@ -186,7 +186,3 @@

(def JRubyMainStatus
(schema/pred jruby-main-status-instance?))

(def JRubyMainStatusOrNil
(schema/either JRubyMainStatus
(schema/pred nil? 'nil?)))

0 comments on commit 1813197

Please sign in to comment.