diff options
author | Felipe Artur <felipefac@gmail.com> | 2018-03-05 11:39:24 -0300 |
---|---|---|
committer | Felipe Artur <felipefac@gmail.com> | 2018-03-05 14:30:56 -0300 |
commit | 9946d0813c8e377ecf22552c4af075e563144712 (patch) | |
tree | 0f1399f16d1d6c70e41d60e11d0fa8a85db913dc /app/helpers/boards_helper.rb | |
parent | dd071c4b6e9754a0abeec45ab2040d9e2d5a62b8 (diff) | |
download | gitlab-ce-9946d0813c8e377ecf22552c4af075e563144712.tar.gz |
Address review comments
Diffstat (limited to 'app/helpers/boards_helper.rb')
-rw-r--r-- | app/helpers/boards_helper.rb | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/app/helpers/boards_helper.rb b/app/helpers/boards_helper.rb index 8304a83a952..275e892b2e6 100644 --- a/app/helpers/boards_helper.rb +++ b/app/helpers/boards_helper.rb @@ -37,13 +37,11 @@ module BoardsHelper end def current_board_path(board) - @current_board_path ||= begin - if board.group_board? - group_board_path(current_board_parent, board) - else - project_board_path(current_board_parent, board) - end - end + @current_board_path ||= if board.group_board? + group_board_path(current_board_parent, board) + else + project_board_path(current_board_parent, board) + end end def current_board_parent |