Fix eslint

This commit is contained in:
Z.J. van de Weg 2017-03-06 14:06:33 +01:00
parent 449ecd6c68
commit 597639c096
4 changed files with 6 additions and 9 deletions

View File

@ -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';

View File

@ -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

View File

@ -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 () {