Skip to content

Commit

Permalink
Make alias-table assert more loose and closes bensu#113
Browse files Browse the repository at this point in the history
  • Loading branch information
arichiardi committed Jul 4, 2016
1 parent 3dc642f commit 57ff34e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/src/doo/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
(resolve-alias :slimer {}) => [:slimer]
(resolve-alias :something {}) => []"
[alias alias-table]
{:pre [(keyword? alias) (map? alias-table)]}
{:pre [(keyword? alias) (or (nil? alias-table) (map? alias-table))]}
(assert (every? vector? (vals alias-table))
(format "The values for the alias tables must be vectors but at least one of them, %s, is not.\n\nEx: {:default [:firefox]}"
(first (remove vector? (vals alias-table)))))
Expand Down

0 comments on commit 57ff34e

Please sign in to comment.