Skip to content

Commit

Permalink
Tidy up formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
stevetemple committed Nov 22, 2023
1 parent 6939a8b commit eed721a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,11 @@ private IEnumerable<GibeLinkPickerData> GetPickerValues(string? contentValue)

if (contentValue.StartsWith("["))
{
return JsonConvert.DeserializeObject<IEnumerable<GibeLinkPickerData>>(contentValue) ?? Enumerable.Empty<GibeLinkPickerData>();
return JsonConvert.DeserializeObject<IEnumerable<GibeLinkPickerData>>(contentValue)
?? Enumerable.Empty<GibeLinkPickerData>();
}
return JsonConvert.DeserializeObject<GibeLinkPickerData>(contentValue)?.AsEnumerableOfOne() ?? Enumerable.Empty<GibeLinkPickerData>();
return JsonConvert.DeserializeObject<GibeLinkPickerData>(contentValue)?.AsEnumerableOfOne()
?? Enumerable.Empty<GibeLinkPickerData>();
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace uSync.Migrations.Migrators.Community.GibeLinkPicker.Models
namespace uSync.Migrations.Migrators.Community.GibeLinkPicker.Models
{
public class GibeLinkPickerData
{
Expand Down

0 comments on commit eed721a

Please sign in to comment.