Skip to content

Commit

Permalink
cosmetic fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bgodard committed Feb 8, 2018
1 parent 8968014 commit 128d611
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/introspection.jl
Expand Up @@ -41,9 +41,7 @@ function positionRecords(eph::Ephem)
@_checkPointer eph.data "Ephemeris is not properly initialized!"
NR::Int = ccall((:calceph_getpositionrecordcount , libcalceph), Cint,
(Ptr{Void},),eph.data)
if (NR == 0)
throw(CALCEPHException("Could not find any position records!"))
end
(NR == 0) && throw(CALCEPHException("Could not find any position records!"))
target = Ref{Cint}(0)
center = Ref{Cint}(0)
startEpoch = Ref{Cdouble}(0.0)
Expand Down Expand Up @@ -89,9 +87,7 @@ function orientationRecords(eph::Ephem)
@_checkPointer eph.data "Ephemeris is not properly initialized!"
NR::Int = ccall((:calceph_getorientrecordcount , libcalceph), Cint,
(Ptr{Void},),eph.data)
if (NR == 0)
throw(CALCEPHException("Could not find any orientation records!"))
end
(NR == 0) && throw(CALCEPHException("Could not find any orientation records!"))
target = Ref{Cint}(0)
startEpoch = Ref{Cdouble}(0.0)
stopEpoch = Ref{Cdouble}(0.0)
Expand Down

0 comments on commit 128d611

Please sign in to comment.