Skip to content

Commit

Permalink
linting bullshit
Browse files Browse the repository at this point in the history
  • Loading branch information
metasyn authored and Xander Johnson committed Nov 8, 2019
1 parent 4cc7278 commit 6b58001
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/js/app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import $ from 'jquery';
import mapboxgl from 'mapbox-gl';
import 'mapbox-gl/dist/mapbox-gl.css';

import Parser from './components/Parser';
import Parser from './components/parser';
import Dates from './components/dates/Dates';

import * as Util from './components/Util';
import * as Util from './components/util';

import '../css/stylish.css';

Expand Down Expand Up @@ -364,8 +364,8 @@ class Application extends Component {
// Seriously, fuck javascript so much
// what the serious fuck is wrong with this language
// this is the most garbage language JFC
function pad(n){return n<10 ? '0'+n : n}
const dateString = `${newDate.getFullYear()}-${pad(newDate.getMonth()+1)}-${pad(newDate.getDate())}`
function pad(n) { return n < 10 ? `0${n}` : n; }
const dateString = `${newDate.getFullYear()}-${pad(newDate.getMonth() + 1)}-${pad(newDate.getDate())}`;

// Loop over all the dates and compare them to a specifc date we've been given
// this is highly dependent on the way we've chosen to format the date
Expand Down

0 comments on commit 6b58001

Please sign in to comment.