Skip to content

Commit

Permalink
chore: revert "🦉 Updates from OwlBot post-processor"
Browse files Browse the repository at this point in the history
This reverts commit 096c83f.
  • Loading branch information
feywind committed Sep 8, 2023
1 parent 096c83f commit 9c5f71c
Show file tree
Hide file tree
Showing 9 changed files with 76 additions and 5,720 deletions.
1,493 changes: 0 additions & 1,493 deletions protos/protos.d.ts

Large diffs are not rendered by default.

3,853 changes: 0 additions & 3,853 deletions protos/protos.js

Large diffs are not rendered by default.

292 changes: 0 additions & 292 deletions protos/protos.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions src/debug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,5 @@
* may be added or removed at any time, without warning.
*/
export class DebugMessage {
constructor(
public message: string,
public error?: Error
) {}
constructor(public message: string, public error?: Error) {}
}
13 changes: 5 additions & 8 deletions src/iam.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export interface IamPermissionsMap {

export type TestIamPermissionsResponse = [
IamPermissionsMap,
IamProtos.google.iam.v1.ITestIamPermissionsResponse,
IamProtos.google.iam.v1.ITestIamPermissionsResponse
];
export type TestIamPermissionsCallback = ResourceCallback<
IamPermissionsMap,
Expand Down Expand Up @@ -387,13 +387,10 @@ export class IAM {
const availablePermissions = arrify(resp!.permissions!);
const permissionHash: IamPermissionsMap = (
permissions as string[]
).reduce(
(acc, permission) => {
acc[permission] = availablePermissions.indexOf(permission) > -1;
return acc;
},
{} as {[key: string]: boolean}
);
).reduce((acc, permission) => {
acc[permission] = availablePermissions.indexOf(permission) > -1;
return acc;
}, {} as {[key: string]: boolean});
callback!(null, permissionHash, resp!);
}
);
Expand Down
Loading

0 comments on commit 9c5f71c

Please sign in to comment.