File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed
Sources/Ignite/Publishing
Tests/IgniteTesting/Modifiers Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff 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>
You can’t perform that action at this time.
0 commit comments