This return is not needed, as in Ruby the last statement in the block is always returned.... also the `max_sessions` variable is not needed at all :-)

```

MAX_SESSIONS = 20

def get_max_sessions_per_gear
  marker_dir = File.join(ENV['OPENSHIFT_REPO_DIR'], ".openshift/markers/")
  max_sessions_marker = File.join(marker_dir, "max_sessions")
  return MAX_SESSIONS unless File.exists?(max_sessions_marker)
  max_sessions = File.read(max_sessions_marker).to_i rescue 0
  if max_sessions > 0
    max_sessions
  else
    @log.info "The max_sessions value is invalid, defaulting to #{MAX_SESSIONS}"
    MAX_SESSIONS
  end
end
```