]> Cypherpunks.ru repositories - goredo.git/blobdiff - buildlog.go
DRY filepath.Abs/Rel
[goredo.git] / buildlog.go
index 3bf3ce07f5bd0c4073d079b63d1a06253f13021c..297808080f112443487832145e17ce6753d4bdb4 100644 (file)
@@ -25,7 +25,6 @@ import (
        "io"
        "os"
        "path"
-       "path/filepath"
        "sort"
        "strconv"
        "strings"
@@ -94,10 +93,7 @@ func depthPrefix(depth int) string {
 }
 
 func showBuildLogSub(sub *BuildLogJob, depth int) error {
-       abs, err := filepath.Abs(path.Join(sub.dir, sub.tgt))
-       if err != nil {
-               return err
-       }
+       abs := mustAbs(path.Join(sub.dir, sub.tgt))
        if _, ok := buildLogSeen[abs]; ok {
                return nil
        }