]> Cypherpunks.ru repositories - goredo.git/blobdiff - dot.go
Raised copyright years
[goredo.git] / dot.go
diff --git a/dot.go b/dot.go
index 39c90194f8bf1bdf63394e528a9fa015d27f2f1a..d1433b593444b8610e7335a5ff12944a34e482da 100644 (file)
--- a/dot.go
+++ b/dot.go
@@ -1,6 +1,6 @@
 /*
 goredo -- djb's redo implementation on pure Go
-Copyright (C) 2020-2021 Sergey Matveev <stargrave@stargrave.org>
+Copyright (C) 2020-2022 Sergey Matveev <stargrave@stargrave.org>
 
 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
@@ -20,6 +20,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 package main
 
 import (
+       "errors"
        "fmt"
        "io"
        "os"
@@ -46,7 +47,7 @@ func dotWalker(data map[DotNodes]bool, tgtOrig string) (map[DotNodes]bool, error
        for {
                m, err := r.NextMap()
                if err != nil {
-                       if err == io.EOF {
+                       if errors.Is(err, io.EOF) {
                                break
                        }
                        return nil, err