Skip to content

Commit 93b8d30

Browse files
committed
fixes linter comments (lack of ;)
1 parent ec429c2 commit 93b8d30

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

js/render-full-size-photo.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ function onDocumentKeydown(evt) {
2020
}
2121
}
2222

23-
2423
function closePhotoModal() {
2524
showModal(false);
2625
document.removeEventListener('keydown', onDocumentKeydown);
@@ -39,11 +38,10 @@ const renderModal = ({ url, description, likes, comments }) => {
3938
const openPhotoModal = (photo) => {
4039
showModal();
4140
renderModal(photo);
42-
document.addEventListener('keydown', onDocumentKeydown)
41+
document.addEventListener('keydown', onDocumentKeydown);
4342
};
4443

4544
DATA_ELEMENTS.photoModalCloseElement.addEventListener('click', closePhotoModal);
4645
DATA_ELEMENTS.commentsLoaderElement.addEventListener('click', renderNextComments);
4746

4847
export { openPhotoModal, closePhotoModal };
49-

0 commit comments

Comments
 (0)