From 1136ca8fca8951e9552fc099123905c9c0f5577f Mon Sep 17 00:00:00 2001 From: Kyle Fuller Date: Fri, 2 Oct 2015 12:20:42 -0700 Subject: [PATCH] [Template] Set default value for bundle initialiser --- Stencil/Template.swift | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Stencil/Template.swift b/Stencil/Template.swift index ded50e27..301098d2 100644 --- a/Stencil/Template.swift +++ b/Stencil/Template.swift @@ -6,13 +6,8 @@ public class Template { public let parser:TokenParser private var nodes:[NodeType]? = nil - /// Create a template with the given name inside the main bundle - public convenience init(named:String) throws { - try self.init(named:named, inBundle:nil) - } - /// Create a template with the given name inside the given bundle - public convenience init(named:String, inBundle bundle:NSBundle?) throws { + public convenience init(named:String, inBundle bundle:NSBundle? = nil) throws { let url:NSURL if let bundle = bundle {