Idiomatically, code is structured to avoid unnecessarily deep nesting.  In this case, it's preferable to do

```go
if method != RESOURCE { 
  ...
  return
}

// the else case is here, not nested
```