Skip to content

Commit aaa4511

Browse files
committed
fix: lint issues
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
1 parent 4fe3f70 commit aaa4511

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

env_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func (d *unmarshaler) UnmarshalText(data []byte) (err error) {
3232
return err
3333
}
3434

35-
type Config struct { //nolint:maligned
35+
type Config struct {
3636
String string `env:"STRING"`
3737
StringPtr *string `env:"STRING"`
3838
Strings []string `env:"STRINGS"`

error.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func (e AggregateError) Error() string {
3535
sb.WriteString("env:")
3636

3737
for _, err := range e.Errors {
38-
sb.WriteString(fmt.Sprintf(" %v;", err.Error()))
38+
fmt.Fprintf(&sb, " %v;", err.Error())
3939
}
4040

4141
return strings.TrimRight(sb.String(), ";")

0 commit comments

Comments
 (0)