Skip to content

Commit

Permalink
Fix linter error
Browse files Browse the repository at this point in the history
  • Loading branch information
snanovskyi committed Aug 30, 2019
1 parent 56dc18b commit db4585e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/createBrainKey.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* eslint-disable no-console */

import { BrainKey } from './BrainKey';
import { PythiaClient } from './PythiaClient';
import { ICrypto, IBrainKeyCrypto, IPythiaCrypto, IAccessTokenProvider } from './types';
Expand All @@ -11,7 +13,7 @@ export const createBrainKey = (options: {
apiUrl?: string;
}) => {
const pythiaClient = new PythiaClient(options.accessTokenProvider, options.apiUrl);
if (options.virgilPythiaCrypto && console) {
if (options.virgilPythiaCrypto && console && console.warn) {
console.warn('Option `virgilPythiaCrypto` is deprecated. Use `virgilBrainKeyCrypto` instead.');
}
return new BrainKey({
Expand Down

0 comments on commit db4585e

Please sign in to comment.