Skip to content

Commit 6ccdf00

Browse files
committed
refactor: remove unnecessary logger.Error()
1 parent 9c4bfce commit 6ccdf00

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

subcmd/build.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import (
55
"fmt"
66
"os"
77

8-
"github.com/vim-volt/volt/logger"
98
"github.com/vim-volt/volt/subcmd/builder"
109
"github.com/vim-volt/volt/transaction"
1110
)
@@ -64,7 +63,6 @@ func (cmd *buildCmd) Run(runctx *RunContext) (cmdErr *Error) {
6463
// Begin transaction
6564
trx, err := transaction.Start()
6665
if err != nil {
67-
logger.Error()
6866
return &Error{Code: 11, Msg: "Failed to begin transaction: " + err.Error()}
6967
}
7068
defer func() {
@@ -75,7 +73,6 @@ func (cmd *buildCmd) Run(runctx *RunContext) (cmdErr *Error) {
7573

7674
err = builder.Build(cmd.full, runctx.LockJSON, runctx.Config)
7775
if err != nil {
78-
logger.Error()
7976
return &Error{Code: 12, Msg: "Failed to build: " + err.Error()}
8077
}
8178

0 commit comments

Comments
 (0)