Skip to content

Commit

Permalink
Remove unused config argument and change to fat arrow functions
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasolson committed Sep 15, 2015
1 parent ad07d65 commit 46096e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/ui/public/vislib/__tests__/components/color.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ describe('Vislib Color Module Test Suite', function () {
var color;

beforeEach(ngMock.module('kibana'));
beforeEach(ngMock.inject(function (Private, config) {
beforeEach(ngMock.inject((Private, config) => {
previousConfig = config.get('visualization:colorMapping');
config.set('visualization:colorMapping', {});
seedColors = Private(require('ui/vislib/components/color/seed_colors'));
Expand All @@ -33,7 +33,7 @@ describe('Vislib Color Module Test Suite', function () {
color = getColors(arr);
}));

afterEach(ngMock.inject(function (config) {
afterEach(ngMock.inject((config) => {
config.set('visualization:colorMapping', previousConfig);
}));

Expand Down
2 changes: 1 addition & 1 deletion src/ui/public/vislib/components/color/color.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
define(function (require) {
return function ColorUtilService(Private, config) {
return function ColorUtilService(Private) {
var _ = require('lodash');
var mappedColors = Private(require('ui/vislib/components/color/mapped_colors'));

Expand Down

0 comments on commit 46096e8

Please sign in to comment.