Fix bunch of warnings

This commit is contained in:
David Jennes
2022-07-27 02:11:09 +02:00
parent d9a48fbda6
commit 0bbb8005bb
7 changed files with 14 additions and 15 deletions

View File

@@ -36,7 +36,7 @@ open class Extension {
/// Registers a template filter with the given name
public func registerFilter(_ name: String, filter: @escaping (Any?, [Any?]) throws -> Any?) {
filters[name] = .arguments({ value, args, _ in try filter(value, args) })
filters[name] = .arguments { value, args, _ in try filter(value, args) }
}
/// Registers a template filter with the given name