Skip to content

Commit fda8d1b

Browse files
authored
Remove trailing whitespaces from codebase (#5634)
Removes trailing whitespaces found across the codebase using `find . -type f -exec grep -lE ' +$' {} +` [skip ci]
1 parent e7f8b15 commit fda8d1b

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

assets/js/_helpers.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,9 +211,9 @@ window.helpers = window.helpers || {
211211
helpers.storage.remove(key);
212212
}
213213
},
214-
set: function (key, value) {
214+
set: function (key, value) {
215215
let encoded_value = encodeURIComponent(JSON.stringify(value))
216-
localStorage.setItem(key, encoded_value);
216+
localStorage.setItem(key, encoded_value);
217217
},
218218
remove: function (key) { localStorage.removeItem(key); }
219219
};

assets/js/player.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ player.on('timeupdate', function () {
143143
let base_url_yt_watch = elem_yt_watch.getAttribute('data-base-url');
144144
elem_yt_watch.href = addCurrentTimeToURL(base_url_yt_watch);
145145
}
146-
146+
147147
let elem_yt_embed = document.getElementById('link-yt-embed');
148148
if (elem_yt_embed) {
149149
let base_url_yt_embed = elem_yt_embed.getAttribute('data-base-url');
@@ -160,7 +160,7 @@ player.on('timeupdate', function () {
160160
let base_url_iv_embed = elem_iv_embed.getAttribute('data-base-url');
161161
elem_iv_embed.href = addCurrentTimeToURL(base_url_iv_embed, domain);
162162
}
163-
163+
164164
let elem_iv_other = document.getElementById('link-iv-other');
165165
if (elem_iv_other) {
166166
let base_url_iv_other = elem_iv_other.getAttribute('data-base-url');
@@ -634,7 +634,7 @@ function toggle_caption_window() {
634634
player.textTrackSettings.setValues({ windowOpacity: options.windowOpacity[newIndex] });
635635
update_captions();
636636
}
637-
637+
638638
function toggle_caption_opacity() {
639639
const numOptions = options.textOpacity.length;
640640
const textOpacity = player.textTrackSettings.getValues().textOpacity || '1';
@@ -739,7 +739,7 @@ addEventListener('keydown', function (e) {
739739

740740
case '>': action = increase_playback_rate.bind(this, 1); break;
741741
case '<': action = increase_playback_rate.bind(this, -1); break;
742-
742+
743743
case '=': action = increase_caption_size.bind(this, 1); break;
744744
case '-': action = increase_caption_size.bind(this, -1); break;
745745

config/config.example.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ db:
5353
##
5454
## When this setting is commented out, Invidious companion is not used.
5555
## Otherwise, Invidious will proxy the requests to Invidious companion.
56-
##
56+
##
5757
## Note: multiple URL can be configured. In this case, Invidious will
5858
## randomly pick one every time video data needs to be retrieved. This
5959
## URL is then kept in the video metadata cache to allow video playback
@@ -63,7 +63,7 @@ db:
6363
## The parameter private_url is required for the internal communication
6464
## between Invidious companion and Invidious.
6565
##
66-
## The optional parameter public_url is the public URL from which
66+
## The optional parameter public_url is the public URL from which
6767
## Invidious companion is listening to the requests from the user(s).
6868
## When this setting is commented out, Invidious proxy all requests to
6969
## Invidious companion. Useful for simple setups.
@@ -232,7 +232,7 @@ https_only: false
232232
## Configuration for using a HTTP proxy
233233
## If unset, then no HTTP proxy will be used.
234234
## Proxy type supported: HTTP, HTTPS
235-
##
235+
##
236236
## This is not used for loading the video streams from YouTube servers (circumvent YouTube restrictions)
237237
## Please instead configure the proxy in Invidious companion:
238238
## https://github.com/iv-org/invidious-companion/blob/master/config/config.example.toml
@@ -885,7 +885,7 @@ default_user_preferences:
885885
## Default: true
886886
##
887887
#vr_mode: true
888-
888+
889889
##
890890
## Save the playback position
891891
## Allow to continue watching at the previous position when

scripts/git/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
# Crystal linter
55
# This is a modified version of the pre-commit hook from the crystal repo. https://github.com/crystal-lang/crystal/blob/master/scripts/git/pre-commit
6-
# Please refer to that if you'd like an version that doesn't automatically format staged files.
6+
# Please refer to that if you'd like an version that doesn't automatically format staged files.
77
changed_cr_files=$(git diff --cached --name-only --diff-filter=ACM | grep '\.cr$')
88
if [ ! -z "$changed_cr_files" ]; then
99
if [ -x bin/crystal ]; then

src/invidious/views/components/player.ecr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
audio_streams.each_with_index do |fmt, i|
2626
src_url = "/latest_version?id=#{video.id}&itag=#{fmt["itag"]}"
2727
src_url += "&local=true" if params.local
28-
src_url = invidious_companion.public_url.to_s + src_url +
28+
src_url = invidious_companion.public_url.to_s + src_url +
2929
"&check=#{invidious_companion_check_id}" if (invidious_companion)
3030
3131
bitrate = fmt["bitrate"]

src/invidious/views/template.ecr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@
159159
<% end %>
160160
@ <%= CURRENT_BRANCH %>
161161
<% if CURRENT_TAG != "" %>
162-
(
162+
(
163163
<% if CONFIG.modified_source_code_url %>
164164
<a href="<%= CONFIG.modified_source_code_url %>/releases/tag/<%= CURRENT_TAG %>"><%= CURRENT_TAG %></a>
165165
<% else %>

0 commit comments

Comments
 (0)