Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
barisusakli committed Aug 11, 2021
1 parent 358ad74 commit 8bf2896
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion public/src/client/topic/posts.js
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,9 @@ define('forum/topic/posts', [
}
});
})).then(function () {
callback && callback();
if (typeof callback === 'function') {
callback();
}
});
}

Expand Down

0 comments on commit 8bf2896

Please sign in to comment.