just explicitly return in your case statement:

```
  when 0
    return "host"
```