The idiomatic style would be to invert the statement and then outdent the else block:

```go
if addr == "" {
    return fmt.Sprintf("%s/services/%s", KeyPrefix, name)
}
return fmt.Sprintf("%s/services/%s/%s", KeyPrefix, name, addr)
```