Fixed `logs` gluing the lines together. (#87)

* Fixed logs gluing the lines.

* .golangci.yml: disable "depguard" linter

---------

Co-authored-by: Nikolay Edigaryev <edigaryev@gmail.com>
This commit is contained in:
Grigory Entin 2023-06-04 11:42:02 +02:00 committed by GitHub
parent ece7c3dcc8
commit c12f93a90a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -12,7 +12,6 @@ linters:
enable:
- asciicheck
- bodyclose
- depguard
- dupl
- errcheck
- exhaustive
@ -114,6 +113,9 @@ linters:
# Unfortunately too much false-positives, e.g. for a 0700 umask or number 10 when using strconv.FormatInt()
- gomnd
# Needs package whitelists
- depguard
issues:
# Don't hide multiple issues that belong to one class since GitHub annotations can handle them all nicely.
max-issues-per-linter: 0

View File

@ -31,7 +31,7 @@ func runLogsVM(cmd *cobra.Command, args []string) error {
}
for _, line := range lines {
fmt.Print(line)
fmt.Println(line)
}
return nil