Skip to content

Commit

Permalink
GRMustacheTemplateLoader.m allows empty string extension
Browse files Browse the repository at this point in the history
  • Loading branch information
groue committed Nov 10, 2010
1 parent 569efa3 commit 64ab8b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/GRMustacheTemplateLoader.m
Expand Up @@ -67,7 +67,7 @@ + (id)templateLoaderWithBundle:(NSBundle *)bundle extension:(NSString *)ext enco

- (id)initWithExtension:(NSString *)theExtension encoding:(NSStringEncoding)theEncoding {
if (self = [self init]) {
if (theExtension.length == 0) {
if (theExtension == nil) {
theExtension = GRMustacheDefaultExtension;
}
extension = [theExtension retain];
Expand Down

0 comments on commit 64ab8b9

Please sign in to comment.