Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
loteoo authored Jul 8, 2024
1 parent 51af72c commit c078a8e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/decap-cms-backend-git-gateway/src/implementation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,11 @@ export default class GitGateway implements Implementation {
if (!(await this.api!.hasWriteAccess())) {
throw new Error("You don't have sufficient permissions to access Decap CMS");
}
return { name: userData.name, login: userData.email, avatar_url: userData.avatar_url } as User;
return {

Check failure on line 365 in packages/decap-cms-backend-git-gateway/src/implementation.ts

View workflow job for this annotation

GitHub Actions / build (macos-latest, 18.x)

Conversion of type '{ name: string; login: string; avatar_url: string; }' to type 'User' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.

Check failure on line 365 in packages/decap-cms-backend-git-gateway/src/implementation.ts

View workflow job for this annotation

GitHub Actions / build (macos-latest, 20.x)

Conversion of type '{ name: string; login: string; avatar_url: string; }' to type 'User' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.

Check failure on line 365 in packages/decap-cms-backend-git-gateway/src/implementation.ts

View workflow job for this annotation

GitHub Actions / build (macos-latest, 18.x)

Conversion of type '{ name: string; login: string; avatar_url: string; }' to type 'User' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.

Check failure on line 365 in packages/decap-cms-backend-git-gateway/src/implementation.ts

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest, 18.x)

Conversion of type '{ name: string; login: string; avatar_url: string; }' to type 'User' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.

Check failure on line 365 in packages/decap-cms-backend-git-gateway/src/implementation.ts

View workflow job for this annotation

GitHub Actions / build (macos-latest, 20.x)

Conversion of type '{ name: string; login: string; avatar_url: string; }' to type 'User' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.

Check failure on line 365 in packages/decap-cms-backend-git-gateway/src/implementation.ts

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest, 20.x)

Conversion of type '{ name: string; login: string; avatar_url: string; }' to type 'User' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.

Check failure on line 365 in packages/decap-cms-backend-git-gateway/src/implementation.ts

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest, 18.x)

Conversion of type '{ name: string; login: string; avatar_url: string; }' to type 'User' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.

Check failure on line 365 in packages/decap-cms-backend-git-gateway/src/implementation.ts

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest, 20.x)

Conversion of type '{ name: string; login: string; avatar_url: string; }' to type 'User' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
name: userData.name,
login: userData.email,
avatar_url: userData.avatar_url,
} as User;
});
}
async restoreUser() {
Expand Down

0 comments on commit c078a8e

Please sign in to comment.