Skip to content

Commit 9eee8f4

Browse files
committed
Change coalesce => something per Julia change
1 parent 26d9497 commit 9eee8f4

File tree

3 files changed

+2
-10
lines changed

3 files changed

+2
-10
lines changed

Manifest.toml

Lines changed: 0 additions & 5 deletions
This file was deleted.

Project.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,8 @@ desc = "Tools to help build a consistent API across various packages, use it, an
33
keywords = ["package", "module", "API"]
44
license = "MIT"
55
name = "ModuleInterfaceTools"
6-
repo-rev = ""
7-
repo-url = "https://github.com/JuliaString/ModuleInterfaceTools.jl.git"
86
uuid = "5cb8414e-7aab-5a03-a681-351269c074bf"
9-
version = "0.1.1"
107

118
[deps]
12-
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
9+
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
1310
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

src/ModuleInterfaceTools.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ const _cmdadd =
118118
(:modules, :public, :develop, :public!, :develop!, :base, :base!)
119119

120120
@static V6_COMPAT && (const _ff = findfirst)
121-
@static V6_COMPAT || (_ff(lst, val) = coalesce(findfirst(isequal(val), lst), 0))
121+
@static V6_COMPAT || (_ff(lst, val) = something(findfirst(isequal(val), lst), 0))
122122

123123
function _add_def!(curmod, grp, exp)
124124
debug[] && print("_add_def!($curmod, $grp, $exp::$(typeof(exp))")

0 commit comments

Comments
 (0)