@@ -84,7 +84,7 @@ extension Element {
8484 for imageElement in imageElements {
8585 if let imageUrl = URL ( withPotentiallyUnencodedPath: try imageElement. attr ( " src " ) ) ,
8686 let absoluteUrl = imageUrl. rewriteRelative ( to: repoTriple, fileType: . raw) {
87- try imageElement. attr ( " src " , absoluteUrl)
87+ _ = try imageElement. attr ( " src " , absoluteUrl)
8888 }
8989 }
9090 } catch {
@@ -99,7 +99,7 @@ extension Element {
9999 for linkElement in linkElements {
100100 if let linkUrl = URL ( withPotentiallyUnencodedPath: try linkElement. attr ( " href " ) ) ,
101101 let absoluteUrl = linkUrl. rewriteRelative ( to: repoTriple, fileType: . blob) {
102- try linkElement. attr ( " href " , absoluteUrl)
102+ _ = try linkElement. attr ( " href " , absoluteUrl)
103103 }
104104 }
105105 } catch {
@@ -116,7 +116,7 @@ extension Element {
116116 if linkDestination. hasPrefix ( " # " ) {
117117 // GitHub adds `user-content` to all anchor destinations but does not change
118118 // the anchors that link to the destinations or match the case that it uses. :rollseyes:
119- try linkElement. attr ( " href " , " #user-content- \( linkDestination. dropFirst ( ) . lowercased ( ) ) " )
119+ _ = try linkElement. attr ( " href " , " #user-content- \( linkDestination. dropFirst ( ) . lowercased ( ) ) " )
120120 }
121121 }
122122 } catch {
@@ -131,7 +131,7 @@ extension Element {
131131 for imageElement in imageElements {
132132 let originalUrl = try imageElement. attr ( " data-canonical-src " )
133133 if originalUrl. hasPrefix ( " http " ) {
134- try imageElement. attr ( " src " , originalUrl)
134+ _ = try imageElement. attr ( " src " , originalUrl)
135135 }
136136 }
137137 } catch {
@@ -145,7 +145,7 @@ extension Element {
145145 let linkElements = try select ( " a " )
146146 for linkElement in linkElements {
147147 // Disable Turbo on *all* link elements.
148- try linkElement. attr ( " data-turbo " , " false " )
148+ _ = try linkElement. attr ( " data-turbo " , " false " )
149149 }
150150 } catch {
151151 // Errors are being intentionally eaten here. The worst that can happen if the
0 commit comments