Skip to content

Commit

Permalink
[CI][#37] String getter에 return 구문 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
dayo2n committed Mar 10, 2024
1 parent 2989ba8 commit 98fe4b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DontForget/Sources/Extensions/String+Extension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ import Foundation
// MARK: - Localizing Methods
extension String {
func localized(comment: String = "") -> String {
NSLocalizedString(self, comment: comment)
return NSLocalizedString(self, comment: comment)
}

func localized(with argument: CVarArg = [], comment: String = "") -> String {
String(format: self.localized(comment: comment), argument)
return String(format: self.localized(comment: comment), argument)
}
}

Expand Down

0 comments on commit 98fe4b7

Please sign in to comment.