Skip to content

Commit

Permalink
Handle no filter in /make
Browse files Browse the repository at this point in the history
  • Loading branch information
gseguin committed Jan 7, 2012
1 parent 00c945f commit e0e64a8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server.js
Expand Up @@ -264,7 +264,9 @@ app.get( '/:repo/:ref/make', function ( req, res ) {
};

shasum.update( JSON.stringify( config ) );
shasum.update( filter );
if ( filter ) {
shasum.update( filter );
}

dstDir = path.join( getCompiledDirSync( req.params.repo, req.params.ref ), shasum.digest( 'hex' ) );
dstFile = path.join( dstDir, name + (optimize !== "none" ? ".min" : "") + ".js" );
Expand Down

0 comments on commit e0e64a8

Please sign in to comment.