Permalink
Browse files

remove useless template literal

  • Loading branch information...
1 parent 7560f8b commit 2b4bb34de00188ad4ccde93299d5c5d23ae7ca2a @dawsonbotsford committed Oct 15, 2016
Showing with 4 additions and 4 deletions.
  1. +1 −1 bundle.js
  2. +1 −1 index.js
  3. +2 −2 package.json
View
@@ -1 +1 @@
-(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.rainge=f()}})(function(){var define,module,exports;return function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s}({1:[function(require,module,exports){"use strict";var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj};module.exports=function(input){var inputType=typeof input==="undefined"?"undefined":_typeof(input);if(inputType!=="string"&&inputType!=="number"){throw new TypeError("Expected a string, got "+(typeof input==="undefined"?"undefined":_typeof(input)))}var currentYear=(new Date).getFullYear().toString();return input.toString()===currentYear?""+currentYear:input+" - "+currentYear}},{}]},{},[1])(1)});
+(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.rainge=f()}})(function(){var define,module,exports;return function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s}({1:[function(require,module,exports){"use strict";var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj};module.exports=function(input){var inputType=typeof input==="undefined"?"undefined":_typeof(input);if(inputType!=="string"&&inputType!=="number"){throw new TypeError("Expected a string, got "+(typeof input==="undefined"?"undefined":_typeof(input)))}var currentYear=(new Date).getFullYear().toString();return input.toString()===currentYear?currentYear:input+" - "+currentYear}},{}]},{},[1])(1)});
View
@@ -9,5 +9,5 @@ module.exports = function (input) {
}
const currentYear = (new Date()).getFullYear().toString();
- return input.toString() === currentYear ? `${currentYear}` : `${input} - ${currentYear}`;
+ return input.toString() === currentYear ? currentYear : `${input} - ${currentYear}`;
};
View
@@ -22,8 +22,8 @@
"scripts": {
"test": "xo && ava",
"ava": "ava",
- "bundle": "browserify index.js -s rainge -t [ babelify --presets [ es2015 ] ] | uglifyjs > bundle.js",
- "precommit": "npm run bundle"
+ "build": "browserify index.js -s rainge -t [ babelify --presets [ es2015 ] ] | uglifyjs > bundle.js",
+ "precommit": "npm run build"
},
"files": [
"index.js",

0 comments on commit 2b4bb34

Please sign in to comment.