Skip to content

Commit

Permalink
Clean up usings again. Fix linkName that may be null.
Browse files Browse the repository at this point in the history
  • Loading branch information
EmileSonneveld committed Nov 16, 2022
1 parent e79889a commit 501e099
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 21 deletions.
6 changes: 1 addition & 5 deletions BalsamiqFlowOverview.UnitTestProject/UnitTest1.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Newtonsoft.Json;
using System;
using Newtonsoft.Json;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
using static System.Net.Mime.MediaTypeNames;

namespace BalsamiqFlowOverview.UnitTestProject
{
Expand Down
4 changes: 1 addition & 3 deletions BalsamiqFlowOverview/BalsamiqBmml.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Collections.Generic;

#pragma warning disable IDE1006 // Naming Styles
#pragma warning disable IDE1006 // Naming Styles

// Classes used to parse JSON to plain old c# objects.
// Code generated with: http://json2csharp.com/
Expand Down
5 changes: 1 addition & 4 deletions BalsamiqFlowOverview/FlowOverview.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing;
using System.Text;
using System.Linq;

namespace BalsamiqFlowOverview
{
Expand Down
7 changes: 3 additions & 4 deletions BalsamiqFlowOverview/FlowScreen.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
using System.Collections.Generic;
using System.Drawing;
using System.Drawing;

namespace BalsamiqFlowOverview
{
class FlowLink
{
public readonly string linkName;
public readonly string? linkName;
public readonly FlowScreen screen;

public FlowLink(string linkName, FlowScreen screen)
public FlowLink(string? linkName, FlowScreen screen)
{
this.linkName = linkName;
this.screen = screen;
Expand Down
6 changes: 1 addition & 5 deletions BalsamiqFlowOverview/Program.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Data.SQLite;
using System.Diagnostics;
using System.IO;
using System.Linq;

namespace BalsamiqFlowOverview
{
Expand Down Expand Up @@ -117,7 +113,7 @@ Dictionary<string, Resource> resources
{
foreach (var control in controls)
{
string controlText = (control.properties?.text).ThrowIfNull();
var controlText = control.properties?.text;
foreach (var href in GetHrefs(control))
{
var fl = new FlowLink(
Expand Down

0 comments on commit 501e099

Please sign in to comment.