Skip to content

Commit

Permalink
[CHORE] 포맷팅 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
paragon0107 committed Nov 4, 2024
1 parent b9166f3 commit 14e0f13
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/main/java/com/tiki/server/note/entity/vo/TitleVo.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@ public class TitleVo {
private String title;


public static TitleVo from(final String title){
public static TitleVo from(final String title) {
validTitleLength(title);
return new TitleVo(title);
}

public static void validTitleLength(final String title){
if (title.isEmpty()){
public static void validTitleLength(final String title) {
if (title.isEmpty()) {
throw new NoteException(TITLE_IS_EMPTY);
}
if(title.length() > 100){
if (title.length() > 100) {
throw new NoteException(TITLE_LENGTH_OVER);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
public record NoteCreateResponseDTO(
long noteId
) {
public static NoteCreateResponseDTO from(final long noteId){
public static NoteCreateResponseDTO from(final long noteId) {
return new NoteCreateResponseDTO(noteId);
}
}

0 comments on commit 14e0f13

Please sign in to comment.