Skip to content

Commit 4c4bfb9

Browse files
abhijithchararslan
authored andcommitted
Fix depwarns for Julia 1.0 (#12)
* fix depwarns * use isempty * updates
1 parent 9c1faba commit 4c4bfb9

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ os:
44
# - osx
55
julia:
66
- 0.6
7+
- 0.7
78
- nightly
89
notifications:
910
email: false
1011
after_success:
11-
- julia -e 'cd(Pkg.dir("Showoff")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())';
12+
- julia -e 'using Pkg; cd(Pkg.dir("Showoff")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())';

src/Showoff.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ end
3535
# Floating-point
3636

3737
function concrete_minimum(xs)
38-
if done(xs, start(xs))
38+
if isempty(xs)
3939
throw(ArgumentError("argument must not be empty"))
4040
end
4141

@@ -57,7 +57,7 @@ end
5757

5858

5959
function concrete_maximum(xs)
60-
if done(xs, start(xs))
60+
if isempty(xs)
6161
throw(ArgumentError("argument must not be empty"))
6262
end
6363

0 commit comments

Comments
 (0)