1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-29 06:33:40 +00:00

Fix glob processing in npm. Ban single param parens (#257)

This commit is contained in:
Matt Gibson
2021-02-04 09:49:23 -06:00
committed by GitHub
parent a16d8f7de7
commit 58f40b0085
98 changed files with 275 additions and 271 deletions

View File

@@ -72,7 +72,7 @@ class Foo {
bar(a: number) {
this.calls++;
this.inflight++;
return new Promise((res) => {
return new Promise(res => {
setTimeout(() => {
expect(this.inflight).toBe(1);
this.inflight--;
@@ -85,7 +85,7 @@ class Foo {
baz(a: number) {
this.calls++;
this.inflight++;
return new Promise((res) => {
return new Promise(res => {
setTimeout(() => {
expect(this.inflight).toBeLessThanOrEqual(5);
this.inflight--;
@@ -94,12 +94,12 @@ class Foo {
});
}
@sequentialize((args) => 'qux' + args[0])
@sequentialize(args => 'qux' + args[0])
@throttle(1, () => 'qux')
qux(a: number) {
this.calls++;
this.inflight++;
return new Promise((res) => {
return new Promise(res => {
setTimeout(() => {
expect(this.inflight).toBe(1);
this.inflight--;