Commits

mgr...@redwavecommerce.com  committed 0565762

Default city to Hamilton.

  • Participants
  • Parent commits d30416a

Comments (0)

Files changed (1)

File HamOntFire.Core/TweetManager.cs

         {
             // Split by space.
             var parts = SplitBySpace(location);
+
+            if (parts.Length == 0)
+            {
+                // TODO - Log.
+                return "Hamilton";
+            }
+
             var cityCode = parts[parts.Length - 1];
 
             String city;