Skip to content

Commit

Permalink
Use camelCase variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuaboniface committed May 30, 2023
1 parent da9eece commit a11d74a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/controllers/dashboard/plugins/add/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function alertText(options) {

function performInstallation(page, name, guid, version) {
const developer = $('#developer', page).html().toLowerCase();

Check failure on line 89 in src/controllers/dashboard/plugins/add/index.js

View workflow job for this annotation

GitHub Actions / Run eslint

'developer' is assigned a value but never used
const repository_url = $('#repositoryUrl', page).html().toLowerCase();
const repositoryUrl = $('#repositoryUrl', page).html().toLowerCase();

const alertCallback = function () {
loading.show();
Expand All @@ -102,7 +102,7 @@ function performInstallation(page, name, guid, version) {

// Check the repository URL for the official Jellyfin repository domain, or
// present the warning for 3rd party plugins.
if (!repository_url.startsWith("https://repo.jellyfin.org/")) {
if (!repositoryUrl.startsWith("https://repo.jellyfin.org/")) {

Check failure on line 105 in src/controllers/dashboard/plugins/add/index.js

View workflow job for this annotation

GitHub Actions / Run eslint

Strings must use singlequote
loading.hide();
let msg = globalize.translate('MessagePluginInstallDisclaimer');
msg += '<br/>';
Expand Down
4 changes: 2 additions & 2 deletions src/controllers/dashboard/plugins/repositories/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export default function(view) {
dialog.querySelector('.newPluginForm').addEventListener('submit', e => {
e.preventDefault();

const repository_url = dialog.querySelector('#txtRepositoryUrl').value.toLowerCase();
const repositoryUrl = dialog.querySelector('#txtRepositoryUrl').value.toLowerCase();

Check failure on line 171 in src/controllers/dashboard/plugins/repositories/index.js

View workflow job for this annotation

GitHub Actions / Run eslint

Trailing spaces not allowed
const alertCallback = function () {
repositories.push({
Expand All @@ -181,7 +181,7 @@ export default function(view) {

Check failure on line 181 in src/controllers/dashboard/plugins/repositories/index.js

View workflow job for this annotation

GitHub Actions / Run eslint

Trailing spaces not allowed
// Check the repository URL for the official Jellyfin repository domain, or
// present the warning for 3rd party plugins.
if (!repository_url.startsWith("https://repo.jellyfin.org/")) {
if (!repositoryUrl.startsWith("https://repo.jellyfin.org/")) {

Check failure on line 184 in src/controllers/dashboard/plugins/repositories/index.js

View workflow job for this annotation

GitHub Actions / Run eslint

Strings must use singlequote
let msg = globalize.translate('MessageRepositoryInstallDisclaimer');
msg += '<br/>';
msg += '<br/>';
Expand Down

0 comments on commit a11d74a

Please sign in to comment.