Skip to content

Commit 89508ab

Browse files
author
Paweł Rozynek
committed
Linter fixes and cleanup
1 parent 470eea6 commit 89508ab

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

emf/logger.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ func WithTimestamp(t time.Time) LoggerOption {
4141
}
4242
}
4343

44-
// NewWith creates logger with reasonable defaults for Lambda functions:
44+
// New creates logger with reasonable defaults for Lambda functions:
4545
// - Prints to os.Stdout.
4646
// - Context based on Lambda environment variables.
4747
// - Timestamp set to the time when NewWith was called.
48-
// Specify NewOptions to customize the logger.
48+
// Specify LoggerOptions to customize the logger.
4949
func New(opts ...LoggerOption) *Logger {
5050
values := make(map[string]interface{})
5151

emf/logger_internal_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ func TestNew(t *testing.T) {
4646

4747
// loggersEqual returns a non-nil error if the loggers do not match.
4848
// Currently it only checks that the loggers' output writer and timestamp match.
49-
// TODO: expand the checks here as more NewOptions are added.
5049
func loggersEqual(actual, expected *Logger) error {
5150
if actual.out != expected.out {
5251
return fmt.Errorf("output does not match")

0 commit comments

Comments
 (0)