Skip to content

Commit b7189f9

Browse files
committed
Fixing linting errors phase 3
1 parent 14b573f commit b7189f9

File tree

5 files changed

+12
-14
lines changed

5 files changed

+12
-14
lines changed

assets/src/modules/sm/App/providers/entityDataRequestFactory.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
angular.module('sm').factory('entityDataRequest', function ($http) {
22
var entityDataRequest = function (params, callback) {
33
return $http.post('/entity/' + params.action, $.param(params))
4-
};
4+
}
55
return {
66
getSchoolsForTerm: function (opts) {
77
return entityDataRequest({

assets/src/modules/sm/Browse/directives/browseListDirective.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ angular.module('sm').directive('browseList', function ($http, entityDataRequest)
1111
var hIndex = hierarchy.indexOf(attrs.browseList)
1212
if (hIndex === -1) {
1313
throw 'browseList mode does not exist'
14-
return
1514
}
1615
var itemName = hierarchy[hIndex]
1716
var childrenName = hierarchy[hIndex + 1] + 's'

assets/src/modules/sm/Schedule/directives/scheduleActionsDirective.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ angular.module('sm').directive('scheduleActions', function ($http, $q, shareServ
130130
ga('send', 'event', 'schedule', 'print')
131131

132132
var reloadSchedule = angular.copy(scope.state.drawOptions)
133-
reloadSchedule.term = scope.state.requestOptions.term,
133+
reloadSchedule.term = scope.state.requestOptions.term
134134
reloadSchedule.courses = scope.schedule
135135

136136
var popup = openPopup(920, 800)

assets/src/modules/sm/Schedule/directives/scheduleDirective.js

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ angular.module('sm').directive('schedule', function ($timeout, $filter) {
138138
timeTop = timeTop / 7.5
139139
timeTop = Math.floor(timeTop)
140140
timeTop = timeTop * 5
141-
timeTop += 19 // Offset for the header
141+
timeTop += 19 // Offset for the header
142142

143143
// Add Padding for Formatting Time
144144
function pad (d) {
@@ -162,16 +162,15 @@ angular.module('sm').directive('schedule', function ($timeout, $filter) {
162162
}
163163

164164
// Set event data
165+
var location = ''
166+
var instructor = ''
167+
var courseNum = ''
165168
if (course.courseNum !== 'non') {
166-
var location = ((this.drawOptions.bldgStyle === 'code') ? time.bldg.code : time.bldg.number) + '-' + time.room + ' (' + (String(hourLabel) + ':' + String(minuteLabel) + ' ' + ap) + ')'
167-
var instructor = course.instructor
168-
var courseNum = course.courseNum
169-
} else {
170-
var location = ''
171-
var instructor = ''
172-
var courseNum = ''
169+
location = ((this.drawOptions.bldgStyle === 'code') ? time.bldg.code : time.bldg.number) + '-' + time.room + ' (' + (String(hourLabel) + ':' + String(minuteLabel) + ' ' + ap) + ')'
170+
instructor = course.instructor
171+
courseNum = course.courseNum
173172
}
174-
course.title = course.title.replace(/&amp;/g, '&').replace(/&lt;/g, '<').replace(/&gt;/g, '>').replace(/&quot;/g, '"').replace(/&#039;/g, "\'").replace(/\\\\/, '\\')
173+
course.title = course.title.replace(/&amp;/g, '&').replace(/&lt;/g, '<').replace(/&gt;/g, '>').replace(/&quot;/g, '"').replace(/&#039;/g, "'").replace(/\\\\/, '\\')
175174
this.scope.scheduleItems.push({
176175
title: course.title,
177176
content: {

assets/src/modules/sm/Status/controllers/StatusController.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ angular.module('sm').controller('StatusController', function ($scope, $http) {
1111
}
1212
})
1313

14-
$scope.timeConvert = function (UNIX_timestamp) {
15-
var a = new Date(+UNIX_timestamp * 1000)
14+
$scope.timeConvert = function (UnixTimestamp) {
15+
var a = new Date(+UnixTimestamp * 1000)
1616
var months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
1717
var year = a.getFullYear()
1818
var month = months[a.getMonth()]

0 commit comments

Comments
 (0)