Break a loop once the work is done.
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Sat, 19 Jan 2019 19:29:22 +0000 (20:29 +0100)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Sat, 19 Jan 2019 19:29:22 +0000 (20:29 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
src/Country.java

index 2e35db2d815fd7a9cb523d82dcaddd8d218d1b95..3b8735dfce66161bbd3e5f82c6eef10be3e09edb 100644 (file)
@@ -100,6 +100,7 @@ public class Country {
                 setLat(Double.parseDouble(latLngArray[0]));
                 setLng(Double.parseDouble(latLngArray[1]));
                 setFlag(line.get(21));
+                break;
             }
         }
         if (!found)