I'm thinking this could probably be simplified to:
```coffeescript
body =
  ref: branchName ? "master"
```