fix codefactor issue

This commit is contained in:
tvision106 2023-11-14 17:15:21 -05:00 committed by Kelson
parent df10ab25e2
commit 25c8ef322c

View File

@ -102,8 +102,8 @@ struct OpenFileHandler: ViewModifier {
} message: { alert in
switch alert {
case .unableToOpen(let filenames):
Text("%@ cannot be opened.".localizedWithFormat(withArgs:
ListFormatter.localizedString(byJoining: filenames)))
let name = ListFormatter.localizedString(byJoining: filenames)
Text("%@ cannot be opened.".localizedWithFormat(withArgs: name))
}
}
}