Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Commit

Permalink
Fix warnings for var usage (#4456)
Browse files Browse the repository at this point in the history
  • Loading branch information
amelzer authored and jasonLaster committed Oct 21, 2017
1 parent 925e7bc commit 02a1f13
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/shared/SearchInput.js
Expand Up @@ -6,7 +6,7 @@ import CloseButton from "./Button/Close";
import "./SearchInput.css";

const arrowBtn = (onClick, type, className, tooltip) => {
var props = {
const props = {
onClick,
type,
className,
Expand Down
8 changes: 4 additions & 4 deletions src/workers/parser/tests/scopes.spec.js
Expand Up @@ -13,7 +13,7 @@ describe("scopes", () => {
column: 2
});

var vars = getVariablesInLocalScope(scope);
const vars = getVariablesInLocalScope(scope);
expect(vars.map(v => v.name)).toEqual(["n"]);
expect(vars[0].references[0].node.loc.start).toEqual({
column: 4,
Expand All @@ -27,7 +27,7 @@ describe("scopes", () => {
column: 5
});

var vars = getVariablesInLocalScope(scope);
const vars = getVariablesInLocalScope(scope);

expect(vars.map(v => v.name)).toEqual(["n"]);
expect(vars[0].references[0].node.loc.start).toEqual({
Expand All @@ -42,7 +42,7 @@ describe("scopes", () => {
column: 13
});

var vars = getVariablesInLocalScope(scope);
const vars = getVariablesInLocalScope(scope);

expect(vars.map(v => v.name)).toEqual(["x"]);
});
Expand All @@ -55,7 +55,7 @@ describe("scopes", () => {
column: 5
});

var vars = getVariablesInScope(scope);
const vars = getVariablesInScope(scope);

expect(vars).toEqual([
"this",
Expand Down

0 comments on commit 02a1f13

Please sign in to comment.