Skip to content

Commit a782b04

Browse files
committed
Updated according to Gemini's review
Signed-off-by: Sbragul26 <sbragul26@gmail.com>
1 parent cf79b41 commit a782b04

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

layouts/partials/navbar.html

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -327,11 +327,7 @@
327327
function getAvatarUrl(response) {
328328
const avatarUrl = response?.avatarUrl;
329329

330-
if (typeof avatarUrl === "string" && avatarUrl.trim()) {
331-
return avatarUrl.trim();
332-
}
333-
334-
return "";
330+
return (typeof avatarUrl === 'string' && avatarUrl.trim()) || '';
335331
}
336332

337333
function getUserProfileUrl(response) {

0 commit comments

Comments
 (0)