Skip to content

Commit

Permalink
Fix lint error.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcenizal committed Apr 22, 2019
1 parent 750f329 commit 80ababd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/legacy/core_plugins/ui_metric/public/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ uiModules.get('kibana').run(($http: any) => {
_http = $http;
});

function createErrorMessage(subject) {
const message = `trackUiMetric was called with ${subject}, which is not allowed to contain a colon. ` +
function createErrorMessage(subject: string): any {
const message =
`trackUiMetric was called with ${subject}, which is not allowed to contain a colon. ` +
`Colons play a special role in how metrics are saved as stored objects`;
return new Error(message);
}
Expand Down

0 comments on commit 80ababd

Please sign in to comment.