Skip to content

Commit 1159c23

Browse files
committed
Simplify CommonJS check
1 parent 7489f70 commit 1159c23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mustache.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
var Mustache;
99

1010
(function (exports) {
11-
if (typeof module !== "undefined" && typeof module.exports !== "undefined") {
11+
if (typeof module !== "undefined" && module.exports) {
1212
module.exports = exports; // CommonJS
1313
} else if (typeof define === "function") {
1414
define(exports); // AMD

0 commit comments

Comments
 (0)