Explorar el Código

Simplifies multiple statements into one

We don't need these 3 statements.
We can simple return the output of context.lookup function.
Even it is null, returning null instead of underfined seems to have
no side effect.
pull/552/head
harryi3t hace 10 años
padre
commit
ce0659e08d
Se han modificado 1 ficheros con 1 adiciones y 3 borrados
  1. +1
    -3
      mustache.js

+ 1
- 3
mustache.js Ver fichero

@@ -551,9 +551,7 @@
};

Writer.prototype.unescapedValue = function unescapedValue (token, context) {
var value = context.lookup(token[1]);
if (value != null)
return value;
return context.lookup(token[1]);
};

Writer.prototype.escapedValue = function escapedValue (token, context) {


Cargando…
Cancelar
Guardar