From eab11fc89c5e016de4892021199fdd4ebd5bac4e Mon Sep 17 00:00:00 2001 From: Pietro Vertechi Date: Sat, 18 Aug 2018 18:30:23 +0100 Subject: [PATCH] remove unnecessary isdefined condition (#24) --- src/Observables.jl | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Observables.jl b/src/Observables.jl index 7f4ddd9..6520269 100644 --- a/src/Observables.jl +++ b/src/Observables.jl @@ -4,11 +4,7 @@ module Observables export Observable, on, off, onany, connect!, obsid, async_latest, throttle -if isdefined(Base, :Iterators) && isdefined(Base.Iterators, :filter) - import Base.Iterators.filter -else - import Base.filter -end +import Base.Iterators.filter const addhandler_callbacks = [] const removehandler_callbacks = []