Skip to content
This repository has been archived by the owner on Mar 17, 2020. It is now read-only.

Commit

Permalink
Fix Sonar code smell
Browse files Browse the repository at this point in the history
  • Loading branch information
javierbrea committed Nov 24, 2019
1 parent 30ba233 commit 1dfb9c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/connect.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import React from "react";
import hoistNonReactStatics from "hoist-non-react-statics";
import { isEqual } from "lodash";
import { ServerSideDataContext } from "./ServerSideDataContext";
import { error } from "./utils";
import { logError } from "./utils";

const READ_METHOD = "read";

Expand Down Expand Up @@ -133,7 +133,7 @@ export const connect = (mapProvidersToProps, parseProps) => {
}

logError(id, message) {
error(`Error "${message}" in instance "${id}"`);
logError(`Error "${message}" in instance "${id}"`);
}

markProviderAsLoaded(key) {
Expand Down
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export const message = text => {
return `@data-provider/connector-react: ${text}`;
};

export const error = text => {
export const logError = text => {
console.error(message(text));
};

Expand Down

0 comments on commit 1dfb9c1

Please sign in to comment.