Skip to content

Commit 9220bcb

Browse files
committed
Lint fixes.
1 parent e10a69b commit 9220bcb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ function getComponentName(component) {
195195

196196
function getFallbackComponentName(component) {
197197
let str = Function.prototype.toString.call(component),
198-
name = (str.match(/^\s*function\s+([^\( ]+)/) || EMPTY)[1];
198+
name = (str.match(/^\s*function\s+([^( ]+)/) || '')[1];
199199
if (!name) {
200200
// search for an existing indexed name for the given component:
201201
let index = -1;

test/jsx.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import render from '../src/jsx';
2-
import { h, Component } from 'preact';
2+
import { h } from 'preact';
33
import chai, { expect } from 'chai';
44
import sinonChai from 'sinon-chai';
55
chai.use(sinonChai);

0 commit comments

Comments
 (0)