Skip to content

Commit

Permalink
Streamline uses of Compat.jl (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
lgoettgens authored Sep 18, 2023
1 parent 275e71e commit b8cbd3b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions src/Aqua.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@ using Base: PkgId, UUID
using Pkg: Pkg, TOML
using Test

try
findnext('a', "a", 1)
catch
import Compat
if VERSION < v"1.3.0-DEV.349"
using Compat: findfirst
end

include("pkg/Versions.jl")
Expand Down
2 changes: 1 addition & 1 deletion src/pkg/Versions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module Versions

export VersionBound, VersionRange, VersionSpec, semver_spec, isjoinable

if !@isdefined(isnothing)
if VERSION < v"1.1.0-DEV.472"
using Compat: isnothing
end

Expand Down

0 comments on commit b8cbd3b

Please sign in to comment.