Skip to content

Commit

Permalink
Break down condition on multiple lines for linter
Browse files Browse the repository at this point in the history
  • Loading branch information
francoisl committed May 3, 2023
1 parent e7b447a commit 4ff8ce5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/libs/ReportUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,13 @@ function getOldDotDefaultAvatar(login = '') {
* @returns {Boolean}
*/
function isDefaultAvatar(avatarURL) {
if (_.isString(avatarURL) && (avatarURL.includes('images/avatars/avatar_') || avatarURL.includes('images/avatars/default-avatar_') || avatarURL.includes('images/avatars/user/default'))) {
if (_.isString(avatarURL)
&& (
avatarURL.includes('images/avatars/avatar_')
|| avatarURL.includes('images/avatars/default-avatar_')
|| avatarURL.includes('images/avatars/user/default')
)
) {
return true;
}

Expand Down

0 comments on commit 4ff8ce5

Please sign in to comment.