deleted extra brace under writeToRepo function.