File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
src/Rentler.SmartyStreets Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ public class Metadata
72
72
public double longitude { get ; set ; }
73
73
public string precision { get ; set ; }
74
74
public string time_zone { get ; set ; }
75
- public int utc_offset { get ; set ; }
75
+ public string utc_offset { get ; set ; }
76
76
public bool dst { get ; set ; }
77
77
}
78
78
Original file line number Diff line number Diff line change @@ -69,11 +69,9 @@ public async Task<IEnumerable<SmartyStreetsAddress>> GetStreetAddress(
69
69
70
70
var url = client . CreateAddress ( "street-address" , args ) ;
71
71
var response = await client . Post ( url ) ;
72
- var obj = JsonSerializer . DeserializeFromStream < SmartyStreetsAddress [ ] > ( response )
73
- ??
74
- new SmartyStreetsAddress [ ] { } ;
75
-
76
- return obj ;
72
+ return JsonSerializer . DeserializeFromStream < SmartyStreetsAddress [ ] > ( response )
73
+ ??
74
+ new SmartyStreetsAddress [ 0 ] ;
77
75
}
78
76
79
77
/// <summary>
You can’t perform that action at this time.
0 commit comments