merge_request: coerce work_in_progress? into a boolean
This commit is contained in:
parent
a2374758e3
commit
380392212f
1 changed files with 1 additions and 1 deletions
|
@ -227,7 +227,7 @@ class MergeRequest < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def work_in_progress?
|
||||
title =~ /\A\[?WIP\]?:? /i
|
||||
!!(title =~ /\A\[?WIP\]?:? /i)
|
||||
end
|
||||
|
||||
def mergeable?
|
||||
|
|
Loading…
Reference in a new issue