Skip to content

Commit ecc6890

Browse files
committed
[Chore] #206 - ifelse문 switch문으로 수정
1 parent 2761cf3 commit ecc6890

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Neki-iOS/Features/Archive/Sources/Presentation/Sources/Feature/AlbumSelectionFeature.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,12 +152,13 @@ struct AlbumSelectionFeature {
152152

153153
return .run { send in
154154
do {
155-
if purpose == .duplicate {
155+
switch purpose {
156+
case .duplicate:
156157
// 복제 - sourceFolderId 없음
157158
try await archiveClient.duplicatePhoto(photoIDs: photoIDs, targetFolderIDs: targetFolderIDs)
158159
await send(.taskCompleted(message: "사진을 앨범에 추가했어요"))
159160

160-
} else if purpose == .move {
161+
case .move:
161162
// 이동 - sourceFolderId 필수
162163
if let sourceFolderId = currentAlbumId {
163164
try await archiveClient.movePhoto(sourceFolderId: sourceFolderId, photoIDs: photoIDs, targetFolderIDs: targetFolderIDs)

0 commit comments

Comments
 (0)