Skip to content

Commit df41f7f

Browse files
authored
Remove unneeded trailing whitespace (#293)
General clean up
1 parent 514e818 commit df41f7f

9 files changed

Lines changed: 15 additions & 15 deletions

File tree

lib/whimsy/asf/board.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def self.nextQuarter
8989
# quarterdates - hash from nextQuarter
9090
# schedule - list of report months (e.g. ["February", "May", "August", "November"])
9191
# possibly preceeded by 'Next month: ...'
92-
# or 'Every month'
92+
# or 'Every month'
9393
# Returns: the next date
9494
def self.nextReport(quarterdates, schedule)
9595
scfirst = schedule.first

lib/whimsy/asf/podling.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ def self.list
202202
def self.list_with_status
203203
self.list.map {|pod| [pod.id, pod.status]}.to_h
204204
end
205-
205+
206206
# list of current podlings
207207
def self.current
208208
self._list('current')

lib/whimsy/asf/svn.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,7 @@ def self.getfile(url, env=nil, &block)
706706
else
707707
return revision, File.read(tmpfile)
708708
end
709-
end
709+
end
710710
end
711711

712712
# update a file in SVN, working entirely in a temporary directory
@@ -755,7 +755,7 @@ def self.updatefile(url, msg, env, wunderbar, expected_revision, options={})
755755
end
756756
rc # return last status
757757
end
758-
758+
759759
# update a file or directory in SVN, working entirely in a temporary
760760
# directory
761761
# Intended for use from GUI code

lib/whimsy/sitestandards.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def get_sites(tlp = true)
218218
end
219219
return sites, crawl_time
220220
end
221-
221+
222222
CSP_INFRA_BASE = <<-EOD.strip.gsub(%r{([.*])}, "\\\\\\1")
223223
'self' data: blob: 'unsafe-inline' 'unsafe-eval'
224224
https://www.apachecon.com/
@@ -228,7 +228,7 @@ def get_sites(tlp = true)
228228
CSP_THIRD_PARTY = "https://*.scarf.sh/ ".gsub(%r{([.*])}, "\\\\\\1")
229229

230230
CSP_PROJECT_DOMAINS = "(.*)" # Allow anything here (capture it)
231-
231+
232232
DEFAULT_CSP = <<-EOD.strip.gsub("\n",'').gsub(/ +/, ' ')
233233
default-src #{CSP_INFRA_BASE} #{CSP_THIRD_PARTY} #{CSP_PROJECT_DOMAINS};
234234
script-src #{CSP_INFRA_BASE} #{CSP_THIRD_PARTY} #{CSP_PROJECT_DOMAINS};
@@ -242,7 +242,7 @@ def get_sites(tlp = true)
242242
WWW_CSP = <<-EOD.strip.gsub("\n",'').gsub(/ +/, ' ')
243243
default-src 'self' data: 'unsafe-inline'
244244
https://www.apachecon.com/ https://analytics.apache.org/ http://analytics.apache.org/
245-
https://www.youtube-nocookie.com https://www.youtube.com;
245+
https://www.youtube-nocookie.com https://www.youtube.com;
246246
script-src 'self' 'unsafe-inline' 'unsafe-eval'
247247
https://www.apachecon.com/ https://analytics.apache.org/ http://analytics.apache.org/
248248
https://www.youtube-nocookie.com https://www.youtube.com;
@@ -298,7 +298,7 @@ def process_csp(sites)
298298
end
299299
end
300300
end
301-
301+
302302
# Analyze data returned from site-scan.rb by using checks[CHECK_VALIDATE] regex
303303
# If value =~ CHECK_VALIDATE, SITE_PASS
304304
# If value is present (presumably from CHECK_TEXT|CAPTURE), then SITE_WARN

tools/scan-page.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function getHost(url) {
4141
page.on('console', message => {
4242
let type = message.type().toUpperCase();
4343
if (type != 'LOG') { // don't want logs
44-
console.log(`${type} ${message.text()}`);
44+
console.log(`${type} ${message.text()}`);
4545
}
4646
});
4747
page.on('request', (interceptedRequest) => {
@@ -61,7 +61,7 @@ function getHost(url) {
6161
interceptedRequest.continue();
6262
} else if (option == 'allref') {
6363
let ini = interceptedRequest.initiator();
64-
if (ini) {
64+
if (ini) {
6565
let iniurl = ini.url;
6666
if (!iniurl && ini.stack) {
6767
iniurl = ini.stack.callFrames[0].url;
@@ -72,7 +72,7 @@ function getHost(url) {
7272
console.log(url);
7373
}
7474
} else { // seems to occur with captcha failures
75-
console.log(url + ' NAK');
75+
console.log(url + ' NAK');
7676
}
7777
interceptedRequest.continue();
7878
} else {

www/board/agenda/routes.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ def server
344344
# posted actions
345345
post '/json/:file' do
346346
return [503, "Service has been withdrawn - use BAT instead"]
347-
347+
348348
# unavailable = Status.updates_disallowed_reason # are updates disallowed?
349349
# return [503, unavailable] if unavailable
350350

www/roster/main.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def appmtime
183183
end
184184

185185
tmp = ASF::Mail.people_mails_github(extra_mails)
186-
186+
187187
# Add ICLA details
188188
ASF::ICLA.each {|icla|
189189
if icla.noId?

www/roster/views/person/main.js.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def render
152152
end
153153
end
154154
end
155-
155+
156156
unless @committer.podling_member.empty?
157157
_div.row do
158158
_div.name 'PPMC committer'

www/status/monitor.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class StatusMonitor
3636
def recorddiff(what, diff)
3737
@timings << [what, diff]
3838
end
39-
39+
4040
def timediff(what)
4141
now = Time.now
4242
recorddiff(what, now - @prev )

0 commit comments

Comments
 (0)