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