From 2ccd74250c9ecc3783b0844e5c7d33d3d54d569c Mon Sep 17 00:00:00 2001 From: Roman Schlagowsky Date: Mon, 19 Feb 2024 13:23:44 +0100 Subject: [PATCH] intentional warnings --- .github/workflows/run-tests.yml | 2 +- Example/Example App/ContentView.swift | 3 +-- Sources/StreamDeckSimulator/StreamDeckSimulator.swift | 5 +++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 5cfedff9..3abdbe49 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -1,6 +1,6 @@ name: "Run tests" run-name: Running tests -on: [push] +on: [pull_request] jobs: run-tests: runs-on: macos-14 diff --git a/Example/Example App/ContentView.swift b/Example/Example App/ContentView.swift index 1a567d12..8c9f5a45 100644 --- a/Example/Example App/ContentView.swift +++ b/Example/Example App/ContentView.swift @@ -27,8 +27,7 @@ struct ContentView: View { Button("Start the Stream Deck Simulator") { StreamDeckSimulator.show(streamDeck: .mini) } - } else { - ForEach(devices) { device in + } else { ForEach(devices) { device in VStack(alignment: .leading) { Text("__\(device.info.productName)__") Text("Serial: \(device.info.serialNumber)") diff --git a/Sources/StreamDeckSimulator/StreamDeckSimulator.swift b/Sources/StreamDeckSimulator/StreamDeckSimulator.swift index b39064bb..9ef04f6b 100644 --- a/Sources/StreamDeckSimulator/StreamDeckSimulator.swift +++ b/Sources/StreamDeckSimulator/StreamDeckSimulator.swift @@ -52,9 +52,10 @@ public final class StreamDeckSimulator { } private func showSimulator(_ product: StreamDeckProduct) { - close() + close(); - guard let scene = activeScene else { return } + guard let scene = activeScene else { + return } lastSelectedProduct = product