codeRIT/hackathon_manager

View on GitHub
app/models/event.rb

Summary

Maintainability
A
0 mins
Test Coverage

Add empty line after guard clause.
Open

    return if finish.nil?
Severity: Minor
Found in app/models/event.rb by rubocop

This cop enforces empty line after guard clause

Example:

# bad
def foo
  return if need_return?
  bar
end

# good
def foo
  return if need_return?

  bar
end

# good
def foo
  return if something?
  return if something_different?

  bar
end

# also good
def foo
  if something?
    do_something
    return if need_return?
  end
end

There are no issues that match your filters.

Category
Status