summaryrefslogtreecommitdiff
path: root/lib/errors/errors.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/errors/errors.go')
-rw-r--r--lib/errors/errors.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/errors/errors.go b/lib/errors/errors.go
index ae339241..3fc38cbd 100644
--- a/lib/errors/errors.go
+++ b/lib/errors/errors.go
@@ -1,6 +1,6 @@
-// Copyright 2018, Shulhan <ms@kilabit.info>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// SPDX-FileCopyrightText: 2018 M. Shulhan <ms@kilabit.info>
+//
+// SPDX-License-Identifier: BSD-3-Clause
// Package errors provide an error type with code.
package errors
@@ -51,7 +51,7 @@ func (e *E) Error() string {
}
// As set the target to e only if only target is **E.
-func (e *E) As(target interface{}) bool {
+func (e *E) As(target any) bool {
_, ok := target.(**E)
if ok {
val := reflect.ValueOf(target)