Skip to content

Commit c390941

Browse files
committed
Removed a couple of print() calls.
1 parent 50ae6c0 commit c390941

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

Sources/Ignite/Publishing/PublishingContext.swift

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -201,12 +201,10 @@ final class PublishingContext {
201201

202202
/// Removes all content from the Build folder, so we're okay to recreate it.
203203
func clearBuildFolder() {
204-
do {
205-
// Apple's docs for fileExists() recommend _not_ to check existence and then make change to file system
206-
try FileManager.default.removeItem(at: buildDirectory)
207-
} catch {
208-
print("Could not remove buildDirectory (\(buildDirectory)), but it will be re-created anyway.")
209-
}
204+
// Apple's docs for fileExists() recommend _not_ to check
205+
// existence and then make change to the file system, so we
206+
// just try our best and silently fail.
207+
try? FileManager.default.removeItem(at: buildDirectory)
210208

211209
do {
212210
try FileManager.default.createDirectory(at: buildDirectory, withIntermediateDirectories: true)

Tests/IgniteTesting/Modifiers/AnimationModifier.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class AnimationModifierTests: IgniteTestSuite {
2121
}.animation(Animation.bounce, on: .hover)
2222

2323
let output = element.render()
24-
print(output)
24+
2525
// Example output:
2626
// <div class="animation-H57c1-hover" style="transform-style: preserve-3d">
2727
// <div class="animation-H57c1-hover"><p><span>This is a Span</span></p></div></div>

0 commit comments

Comments
 (0)