From e0773d0b91205a8a6067fa3d0fbaff5aa2549645 Mon Sep 17 00:00:00 2001 From: Marco Peereboom Date: Fri, 1 Nov 2024 17:38:38 +0000 Subject: [PATCH] Update service/tbc/crawler.go Co-authored-by: Joshua Sing --- service/tbc/crawler.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/service/tbc/crawler.go b/service/tbc/crawler.go index 107cf33f..db81c3a4 100644 --- a/service/tbc/crawler.go +++ b/service/tbc/crawler.go @@ -72,13 +72,13 @@ var ( } ) -type NotLinear string +type NotLinearError string -func (en NotLinear) Error() string { - return string(en) +func (e NotLinearError) Error() string { + return string(e) } -func (nl NotLinear) Is(target error) bool { +func (e NotLinearError) Is(target error) bool { _, ok := target.(NotLinear) return ok }