more swiftlint changes

This commit is contained in:
Dominic Drees 2025-04-27 12:40:08 +02:00
parent e5a2c636b2
commit 9a5cb805ca
3 changed files with 5 additions and 6 deletions

View file

@ -1084,7 +1084,6 @@ class CustomMediaPlayerViewController: UIViewController, UIGestureRecognizerDele
skipOutroButton.backgroundColor = UIColor(red: 51/255.0, green: 51/255.0, blue: 51/255.0, alpha: 0.8)
if #available(iOS 15.0, *) {
var config = UIButton.Configuration.filled()
config.contentInsets = NSDirectionalEdgeInsets(top: 6, leading: 10, bottom: 6, trailing: 10)

View file

@ -56,7 +56,7 @@ struct MediaInfoView: View {
@State private var showStreamLoadingView: Bool = false
@State private var currentStreamTitle: String = ""
@State private var activeFetchID: UUID? = nil
@State private var activeFetchID: UUID?
@Environment(\.dismiss) private var dismiss
@State private var orientationChanged: Bool = false
@ -548,8 +548,8 @@ struct MediaInfoView: View {
}
private func finishedAndUnfinishedIndices() -> (finished: Int?, unfinished: Int?) {
var finishedIndex: Int? = nil
var firstUnfinishedIndex: Int? = nil
var finishedIndex: Int?
var firstUnfinishedIndex: Int?
for (index, ep) in episodeLinks.enumerated() {
let keyLast = "lastPlayedTime_\(ep.href)"

View file

@ -232,7 +232,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "if command -v swiftlint >/dev/null 2>&1\nthen\n swiftlint --fix && swiftlint\nelse\n echo \"warning: `swiftlint` command not found - See https://github.com/realm/SwiftLint#installation for installation instructions.\"\nfi\n";
shellScript = "if command -v swiftlint >/dev/null 2>&1\nthen\n swiftlint lint --fix && swiftlint\nelse\n echo \"warning: `swiftlint` command not found - See https://github.com/realm/SwiftLint#installation for installation instructions.\"\nfi\n";
};
12DAC1832DBE3C1C00B31A65 /* ShellScript */ = {
isa = PBXShellScriptBuildPhase;
@ -249,7 +249,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "if command -v swiftlint >/dev/null 2>&1\nthen\n swiftlint --fix && swiftlint\nelse\n echo \"warning: `swiftlint` command not found - See https://github.com/realm/SwiftLint#installation for installation instructions.\"\nfi\n";
shellScript = "if command -v swiftlint >/dev/null 2>&1\nthen\n swiftlint lint --fix && swiftlint\nelse\n echo \"warning: `swiftlint` command not found - See https://github.com/realm/SwiftLint#installation for installation instructions.\"\nfi\n";
};
/* End PBXShellScriptBuildPhase section */