Fix eslint
This commit is contained in:
parent
449ecd6c68
commit
597639c096
|
@ -35,7 +35,7 @@
|
|||
/* global Labels */
|
||||
/* global Shortcuts */
|
||||
|
||||
import BindInOut from './behaviors/bind_in_out.js.es6';
|
||||
import BindInOut from './behaviors/bind_in_out';
|
||||
import GroupsList from './groups_list';
|
||||
import ProjectsList from './projects_list';
|
||||
|
||||
|
|
|
@ -23,13 +23,10 @@ module Groups
|
|||
@group.name ||= @group.path.dup
|
||||
|
||||
if create_chat_team?
|
||||
begin
|
||||
response = Mattermost::CreateTeamService.new(@group, current_user).execute
|
||||
|
||||
@group.build_chat_team(name: response['name'], team_id: response['id'])
|
||||
end
|
||||
|
||||
response = Mattermost::CreateTeamService.new(@group, current_user).execute
|
||||
return @group if @group.errors.any?
|
||||
|
||||
@group.build_chat_team(name: response['name'], team_id: response['id'])
|
||||
end
|
||||
|
||||
@group.save
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import BindInOut from '~/behaviors/bind_in_out.js.es6';
|
||||
import ClassSpecHelper from '../helpers/class_spec_helper.js.es6';
|
||||
import BindInOut from '~/behaviors/bind_in_out';
|
||||
import ClassSpecHelper from '../helpers/class_spec_helper';
|
||||
|
||||
describe('BindInOut', function () {
|
||||
describe('.constructor', function () {
|
Loading…
Reference in New Issue