Skip to content
This repository has been archived by the owner on Aug 16, 2022. It is now read-only.

Commit

Permalink
fix: replace strings.Split() with strings.field() (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
mimoham24 committed Jul 16, 2021
1 parent 8469574 commit ba7d164
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/layer/decoding/kml.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func coordinatesToLatLngHeight(c string) (*property.LatLng, float64, error) {

func coordinatesToLatLngHeightList(c string) ([]property.LatLngHeight, error) {
var LatLngHeighList []property.LatLngHeight
coords := strings.Split(c, "\n")
coords := strings.Fields(c)
for _, llh := range coords {
reg, err := regexp.Compile(`\s+`)
if err != nil {
Expand Down

0 comments on commit ba7d164

Please sign in to comment.