Skip to content

Commit 37cf026

Browse files
committed
refactor(logs): remove extra func
1 parent 57a1ab7 commit 37cf026

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

util/config.go

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -151,20 +151,6 @@ type AuthConfig struct {
151151
Email *EmailAuthConfig `json:"email,omitempty"`
152152
}
153153

154-
func structToMap(obj interface{}) map[string]interface{} {
155-
b, err := json.Marshal(obj)
156-
if err != nil {
157-
return nil
158-
}
159-
160-
// 2) unmarshal those bytes into a map
161-
var m map[string]interface{}
162-
if err := json.Unmarshal(b, &m); err != nil {
163-
return nil
164-
}
165-
return m
166-
}
167-
168154
type EventLogType struct {
169155
Enabled bool `json:"enabled" env:"SEMAPHORE_EVENT_LOG_ENABLED"`
170156
Logger *lumberjack.Logger `json:"logger,omitempty" env:"SEMAPHORE_EVENT_LOGGER"`

0 commit comments

Comments
 (0)