@@ -49,7 +49,7 @@ func (igrf *IGRFcoeffs) Coeffs(date float64) (*[]float64, *[]float64, int, error
4949 min_epoch := (* igrf .epochs )[0 ]
5050 max_epoch := (* igrf .epochs )[max_column - 1 ]
5151 if date < min_epoch || date > max_epoch {
52- return nil , nil , 0 , fmt .Errorf ("Date %v is out of range (%v, %v). " , date , min_epoch , max_epoch )
52+ return nil , nil , 0 , fmt .Errorf ("date %v is out of range (%v, %v)" , date , min_epoch , max_epoch )
5353 }
5454 // calculate coeffs for the requested date
5555 start , end := igrf .findEpochs (date )
@@ -101,7 +101,7 @@ func (igrf *IGRFcoeffs) interpolateCoeffs(start_epoch, end_epoch string, date fl
101101 // between 1995.0 and 2000.0
102102 k = nmax1 * (nmax1 + 2 )
103103 l = nmax2 * (nmax2 + 2 )
104- interp = func (start , end , f float64 ) float64 {
104+ interp = func (_ , end , f float64 ) float64 {
105105 return f * end
106106 }
107107 nmax = nmax2
@@ -212,7 +212,7 @@ func getEpochs(reader <-chan string) (*[]string, *[]float64, error) {
212212 names , epochs := parseHeader (line , line2 )
213213 return & names , & epochs , nil
214214 }
215- return nil , nil , errors .New ("Unable to get epochs. " )
215+ return nil , nil , errors .New ("unable to get epochs" )
216216}
217217
218218// Parses the header of the coeffs. Usually it's the first two non-comment lines.
@@ -257,7 +257,7 @@ func (igrf *IGRFcoeffs) getCoeffsForEpochs(provider <-chan string) error {
257257 line_data := space_re .Split (line , - 1 )
258258 line_coeffs , err := parseArrayToFloat (line_data [3 :])
259259 if err != nil {
260- return errors .New ("Unable to parse coeffs. " )
260+ return errors .New ("unable to parse coeffs" )
261261 }
262262 igrf .loadCoeffs (i , line_coeffs )
263263 i ++
0 commit comments