Skip to content

Commit 8342f0c

Browse files
committed
omit try keyword when not necessary
1 parent 69884b9 commit 8342f0c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/browser/html/elements.zig

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -218,36 +218,36 @@ pub const HTMLAnchorElement = struct {
218218
}
219219

220220
pub fn get_href(self: *parser.Anchor) ![]const u8 {
221-
return try parser.anchorGetHref(self);
221+
return parser.anchorGetHref(self);
222222
}
223223

224224
pub fn set_href(self: *parser.Anchor, href: []const u8, page: *const Page) !void {
225225
const full = try urlStitch(page.call_arena, href, page.url.raw, .{});
226-
return try parser.anchorSetHref(self, full);
226+
return parser.anchorSetHref(self, full);
227227
}
228228

229229
pub fn get_hreflang(self: *parser.Anchor) ![]const u8 {
230-
return try parser.anchorGetHrefLang(self);
230+
return parser.anchorGetHrefLang(self);
231231
}
232232

233233
pub fn set_hreflang(self: *parser.Anchor, href: []const u8) !void {
234-
return try parser.anchorSetHrefLang(self, href);
234+
return parser.anchorSetHrefLang(self, href);
235235
}
236236

237237
pub fn get_type(self: *parser.Anchor) ![]const u8 {
238-
return try parser.anchorGetType(self);
238+
return parser.anchorGetType(self);
239239
}
240240

241241
pub fn set_type(self: *parser.Anchor, t: []const u8) !void {
242-
return try parser.anchorSetType(self, t);
242+
return parser.anchorSetType(self, t);
243243
}
244244

245245
pub fn get_rel(self: *parser.Anchor) ![]const u8 {
246-
return try parser.anchorGetRel(self);
246+
return parser.anchorGetRel(self);
247247
}
248248

249249
pub fn set_rel(self: *parser.Anchor, t: []const u8) !void {
250-
return try parser.anchorSetRel(self, t);
250+
return parser.anchorSetRel(self, t);
251251
}
252252

253253
pub fn get_text(self: *parser.Anchor) !?[]const u8 {

0 commit comments

Comments
 (0)