Skip to content
This repository was archived by the owner on Sep 1, 2023. It is now read-only.

Commit 69e4eb0

Browse files
committed
linters
1 parent f5d69c2 commit 69e4eb0

File tree

6 files changed

+4
-8
lines changed

6 files changed

+4
-8
lines changed

src/TypeSpec.hack

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ function nullable<T>(TypeSpec<T> $inner): TypeSpec<?T> {
131131
return new __Private\NullableSpec($inner);
132132
}
133133

134-
135134
function num(): TypeSpec<num> {
136135
return new __Private\NumSpec();
137136
}

src/TypeSpec/__Private/ArrayKeySpec.hack

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
namespace Facebook\TypeSpec\__Private;
1212

13-
1413
final class ArrayKeySpec extends UnionSpec<arraykey> {
1514
public function __construct() {
1615
parent::__construct('arraykey', new StringSpec(), new IntSpec());

src/TypeSpec/__Private/MapSpec.hack

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ final class MapSpec<Tk as arraykey, Tv, T as \ConstMap<Tk, Tv>>
4545
$tsk = $this->tsk->withTrace($kt);
4646
$tsv = $this->tsv->withTrace($vt);
4747

48-
4948
$out = Map {};
5049
$changed = false;
5150
foreach ($value as $k => $v) {

src/TypeSpec/__Private/NumSpec.hack

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
namespace Facebook\TypeSpec\__Private;
1212

13-
1413
final class NumSpec extends UnionSpec<num> {
1514
public function __construct() {
1615
parent::__construct('num', new IntSpec(), new FloatSpec());

tests/RelationshipsTest.hack

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ final class RelationshipsTest extends \Facebook\HackTest\HackTest {
3939
public function testObjectInstanceOfTypechecks(): void {
4040
return; // this test is just here for hh_client
4141

42-
$f = (ParentClass $x) ==> {
42+
$f = (ParentClass $_x) ==> {
4343
};
4444
$f(namespace\instance_of(ParentClass::class, new ParentClass()));
4545
$f(namespace\instance_of(ParentClass::class, new ChildClass()));
@@ -70,7 +70,7 @@ final class RelationshipsTest extends \Facebook\HackTest\HackTest {
7070
public function testClassnameOfTypechecks(): void {
7171
return; // this test is just here for hh_client
7272

73-
$f = (classname<ParentClass> $x) ==> {
73+
$f = (classname<ParentClass> $_x) ==> {
7474
};
7575
$f(namespace\classname_of(ParentClass::class, ParentClass::class));
7676
$f(namespace\classname_of(ParentClass::class, ChildClass::class));

tests/ScalarsTest.hack

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,12 @@ final class ScalarsTest extends \Facebook\HackTest\HackTest {
103103
public function testIsNotNullTypechecks(): void {
104104
return; // this test is just here for hh_client
105105

106-
$wants_int = (int $x) ==> {
106+
$wants_int = (int $_x) ==> {
107107
};
108108
$wants_int(TypeAssert\not_null(123));
109109
$wants_int(TypeAssert\not_null(null));
110110

111-
$wants_string = (string $x) ==> {
111+
$wants_string = (string $_x) ==> {
112112
};
113113
$wants_string(TypeAssert\not_null('foo bar'));
114114
$wants_string(TypeAssert\not_null(null));

0 commit comments

Comments
 (0)