Skip to content

Commit

Permalink
fix(profile): null or blank 로직을 isBlank로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobhboy committed Apr 25, 2024
1 parent 31800be commit 2e91d21
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

import java.time.LocalDateTime;

import org.jsoup.internal.StringUtil;

import com.sickgyun.server.profile.domain.Profile;
import com.sickgyun.server.profile.domain.value.Major;

Expand All @@ -25,7 +27,7 @@ public static ProfileResponse from(Profile profile) {
profile.getWriter().getName(),
profile.getInformation().getImageUrl(),
LocalDateTime.now().getYear() - profile.getWriter().getCardinal() >= 2023,
!(profile.getCompany().isBlank() || profile.getCompany().isEmpty()),
!StringUtil.isBlank(profile.getCompany()),
profile.getInformation().getMajor(),
profile.getOnlineProfile().getGithubId(),
profile.getOnlineProfile().getResumeUrl(),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package com.sickgyun.server.profile.presentation.dto;

import org.jsoup.internal.StringUtil;

import com.sickgyun.server.profile.domain.Profile;
import com.sickgyun.server.profile.domain.value.Major;

Expand Down Expand Up @@ -29,7 +31,7 @@ public static SimpleProfileResponse from(Profile profile) {
introduction,
profile.getWriter().getCardinal(),
profile.getWriter().getId(),
!(profile.getCompany().isBlank() || profile.getCompany().isEmpty())
!StringUtil.isBlank(profile.getCompany())
);
}
}

0 comments on commit 2e91d21

Please sign in to comment.