Apply suggestions from code review

Co-authored-by: Chocobo1 <Chocobo1@users.noreply.github.com>
This commit is contained in:
skomerko 2024-12-09 11:47:27 +01:00 committed by GitHub
commit 155bd44506
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -64,7 +64,8 @@ window.qBittorrent.PiecesBar ??= (() => {
const obj = document.createElement("div");
obj.id = vals.id;
obj.className = "piecesbarWrapper";
obj.style = `border: ${vals.borderSize}px solid ${vals.borderColor}; height: ${vals.height}px;`;
obj.style.border = `${vals.borderSize}px solid ${vals.borderColor}`;
obj.style.height = `${vals.height}px`;
obj.vals = vals;
obj.vals.pieces = [pieces, []].pick();

View file

@ -380,7 +380,6 @@ window.qBittorrent.Search ??= (() => {
statusIcon.className = "statusIcon";
statusIcon.width = "12";
statusIcon.height = "12";
return statusIcon;
};