Permalink
Browse files

formatting

  • Loading branch information...
clickonchris committed Dec 15, 2011
1 parent 80bc4d3 commit 5cec72900b6381aaf0ad291a43c58f4a264ef032
Showing with 12 additions and 12 deletions.
  1. +12 −12 grails-app/controllers/grails/ws/demo/WeatherController.groovy
@@ -10,21 +10,21 @@ class WeatherController {
def index = {
def message
- if (params?.value && params.from) {
-
+ if (params?.value && params.from) {
+
def proxy = WebServiceClientFactory.getWeatherService()
- def result
+ def result
def to_units
- if ("Celcius".equals(params.from)) {
- result = proxy.CelsiusToFahrenheit(params.value)
+ if ("Celcius".equals(params.from)) {
+ result = proxy.CelsiusToFahrenheit(params.value)
to_units = "F"
- } else {
- result = proxy.FahrenheitToCelsius(params.value)
+ } else {
+ result = proxy.FahrenheitToCelsius(params.value)
to_units = "C"
- }
- message = "${params.value} degrees ${params.from} is ${result} degrees ${to_units}"
- }
+ }
+ message = "${params.value} degrees ${params.from} is ${result} degrees ${to_units}"
+ }
- flash.message = message
- }
+ flash.message = message
+ }
}

0 comments on commit 5cec729

Please sign in to comment.