Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
antonmashko committed Sep 14, 2023
1 parent 828f9a8 commit 1ff9fec
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions type_primitive.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package envconf

import (
"fmt"
"log"
"net"
"net/url"
"reflect"
Expand Down Expand Up @@ -218,7 +217,6 @@ func setFromString(field reflect.Value, value string) error {
}
field.Set(rmp)
default:
log.Println(field.Type().String(), value)
return ErrUnsupportedType
}
return nil
Expand Down Expand Up @@ -257,7 +255,6 @@ func setFromInterface(field reflect.Value, value interface{}) error {
elem := ftype.Elem()
iter := ival.MapRange()
for iter.Next() {
log.Printf("key:%v val:%v", iter.Key().Interface(), iter.Value().Interface())
rvkey := reflect.New(key).Elem()
if err := setFromString(rvkey, fmt.Sprint(iter.Key().Interface())); err != nil {
return err
Expand Down

0 comments on commit 1ff9fec

Please sign in to comment.