Small code layout improvement.
This commit is contained in:
parent
6bf1d11f4d
commit
09a8278031
1 changed files with 7 additions and 9 deletions
|
@ -229,16 +229,14 @@ class Channel::Twitter2
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
return ticket
|
ticket
|
||||||
end
|
end
|
||||||
|
|
||||||
def fetch_article_create( user, ticket, tweet, sender )
|
def fetch_article_create( user, ticket, tweet, sender )
|
||||||
|
|
||||||
# find if record already exists
|
# find if record already exists
|
||||||
article = Ticket::Article.where( :message_id => tweet.id.to_s ).first
|
article = Ticket::Article.where( :message_id => tweet.id.to_s ).first
|
||||||
if article
|
return article if article
|
||||||
return article
|
|
||||||
end
|
|
||||||
|
|
||||||
# set ticket state to open if not new
|
# set ticket state to open if not new
|
||||||
if ticket.ticket_state.name != 'new'
|
if ticket.ticket_state.name != 'new'
|
||||||
|
|
Loading…
Reference in a new issue