Skip to content

Commit

Permalink
fix: extra throws exception instead of returning null (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
aajtodd authored Aug 10, 2023
1 parent b4e2c7c commit e0e8a5d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public fun Project.localProperties(): Map<String, Any> {
* @return property if it exists or null
*/
public fun Project.prop(name: String): Any? =
properties[name] ?: localProperties()[name] ?: extra[name]
properties[name] ?: localProperties()[name] ?: extra.getOrNull(name)

inline fun <reified T> Project.typedProp(name: String): T? {
val any = prop(name)
Expand Down

0 comments on commit e0e8a5d

Please sign in to comment.