Skip to content

Commit

Permalink
fix linters
Browse files Browse the repository at this point in the history
  • Loading branch information
cmpxchg16 committed Oct 21, 2021
1 parent dc87ae1 commit aff0fa2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkg/porcelain.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func (p *Porcelain) PrintEntries(entries []core.EnvEntry) {

for i := range entries {
v := entries[i]
ep := ellipsis.Shorten(v.ResolvedPath, 30) //nolint
ep := ellipsis.Shorten(v.ResolvedPath, 30)
if !v.IsFound {
fmt.Fprintf(&buf, "[%s %s %s] %s\n", yellow(v.ProviderName), gray(ep), red("missing"), green(v.Key))
} else {
Expand All @@ -120,7 +120,7 @@ func (p *Porcelain) PrintEntries(entries []core.EnvEntry) {
fmt.Fprint(p.Out, out)
}
func maskedValue(v string) string {
return fmt.Sprintf("%s*****", v[:int(math.Min(float64(len(v)), 2))]) //nolint
return fmt.Sprintf("%s*****", v[:int(math.Min(float64(len(v)), 2))])
}

func (p *Porcelain) PrintMatches(matches []core.Match) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/teller.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ func checkForMatches(path string, entries []core.EnvEntry) ([]core.Match, error)
//nolint
scanner.Buffer(buf, 10*1024*1024) // 10MB lines correlating to 10MB files max (bundles?)

var lineNumber int = 0 //nolint
var lineNumber int = 0
for scanner.Scan() {
lineNumber++
line := scanner.Bytes()
Expand Down

0 comments on commit aff0fa2

Please sign in to comment.