community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1711157 - /comdev/reporter.apache.org/trunk/site/render.js
Date Wed, 28 Oct 2015 23:08:56 GMT
Author: sebb
Date: Wed Oct 28 23:08:56 2015
New Revision: 1711157

URL: http://svn.apache.org/viewvc?rev=1711157&view=rev
Log:
Simplify

Modified:
    comdev/reporter.apache.org/trunk/site/render.js

Modified: comdev/reporter.apache.org/trunk/site/render.js
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/render.js?rev=1711157&r1=1711156&r2=1711157&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/render.js (original)
+++ comdev/reporter.apache.org/trunk/site/render.js Wed Oct 28 23:08:56 2015
@@ -84,10 +84,7 @@ function everyMonth(s) {
 	if (s.indexOf('Next month') == 0) {
 		return true
 	}
-	if (s == 'Every month') {
-		return true
-	}
-	return false
+	return s == 'Every month'
 }
 
 var m = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September',
'October', 'November', 'December']



Mime
View raw message