Skip to content

Commit

Permalink
Update for eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
Kalydosos authored Oct 30, 2024
1 parent 560496b commit 4c83a8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ImageView/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ function ImageView({isAuthTokenRequired = false, url, fileName, onError}: ImageV
// isLocalToUserDeviceFile means the file is located on the user device,
// not loaded on the server yet (the user is offline when loading this file in fact)
let isLocalToUserDeviceFile = FileUtils.isLocalFile(url);
if (isLocalToUserDeviceFile && (typeof url === "string") && url.startsWith("/chat-attachments")){
if (isLocalToUserDeviceFile && typeof url === "string" && url.startsWith("/chat-attachments")){

Check failure on line 202 in src/components/ImageView/index.tsx

View workflow job for this annotation

GitHub Actions / ESLint check

Replace `"string"·&&·url.startsWith("/chat-attachments"))` with `'string'·&&·url.startsWith('/chat-attachments'))·`

Check failure on line 202 in src/components/ImageView/index.tsx

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

Replace `"string"·&&·url.startsWith("/chat-attachments"))` with `'string'·&&·url.startsWith('/chat-attachments'))·`
isLocalToUserDeviceFile = false ;

Check failure on line 203 in src/components/ImageView/index.tsx

View workflow job for this annotation

GitHub Actions / ESLint check

Delete `·`

Check failure on line 203 in src/components/ImageView/index.tsx

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

Delete `·`
}

Expand Down

0 comments on commit 4c83a8c

Please sign in to comment.