We can avoid creating an object:

```js
this.sketchFeature_ = new ol.Feature();
if (goog.isDef(this.geometryName_)) {
  this.sketchFeature_.setGeometryName(this.geometryName_);
}
this.sketchFeature_.setGeometry(geometry);
```

?