Skip to content

Commit 34a3050

Browse files
committed
None of this needs to account for nulls
1 parent 5c1a136 commit 34a3050

File tree

9 files changed

+9
-12
lines changed

9 files changed

+9
-12
lines changed

BinaryObjectScanner/FileType/AACSMediaKeyBlock.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace BinaryObjectScanner.FileType
1010
public class AACSMediaKeyBlock : DetectableBase<SabreTools.Serialization.Wrappers.AACSMediaKeyBlock>
1111
{
1212
/// <inheritdoc/>
13-
public AACSMediaKeyBlock(SabreTools.Serialization.Wrappers.AACSMediaKeyBlock? wrapper) : base(wrapper) { }
13+
public AACSMediaKeyBlock(SabreTools.Serialization.Wrappers.AACSMediaKeyBlock wrapper) : base(wrapper) { }
1414

1515
/// <inheritdoc/>
1616
public override string? Detect(Stream stream, string file, bool includeDebug)

BinaryObjectScanner/FileType/BDPlusSVM.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace BinaryObjectScanner.FileType
88
public class BDPlusSVM : DetectableBase<SabreTools.Serialization.Wrappers.BDPlusSVM>
99
{
1010
/// <inheritdoc/>
11-
public BDPlusSVM(SabreTools.Serialization.Wrappers.BDPlusSVM? wrapper) : base(wrapper) { }
11+
public BDPlusSVM(SabreTools.Serialization.Wrappers.BDPlusSVM wrapper) : base(wrapper) { }
1212

1313
/// <inheritdoc/>
1414
public override string? Detect(Stream stream, string file, bool includeDebug)

BinaryObjectScanner/FileType/DetectableBaseT.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,8 @@ public abstract class DetectableBase<T> : DetectableBase, IDetectable<T> where T
2020

2121
#region Constructors
2222

23-
public DetectableBase(T? wrapper)
23+
public DetectableBase(T wrapper)
2424
{
25-
if (wrapper == null)
26-
throw new ArgumentNullException(nameof(wrapper));
27-
2825
_wrapper = wrapper;
2926
}
3027

BinaryObjectScanner/FileType/Executable.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public abstract class Executable<T> : DetectableBase<T>
1515
where T : WrapperBase
1616
{
1717
/// <inheritdoc/>
18-
public Executable(T? wrapper) : base(wrapper) { }
18+
public Executable(T wrapper) : base(wrapper) { }
1919

2020
#region Check Runners
2121

BinaryObjectScanner/FileType/LinearExecutable.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace BinaryObjectScanner.FileType
1010
public class LinearExecutable : Executable<SabreTools.Serialization.Wrappers.LinearExecutable>
1111
{
1212
/// <inheritdoc/>
13-
public LinearExecutable(SabreTools.Serialization.Wrappers.LinearExecutable? wrapper) : base(wrapper) { }
13+
public LinearExecutable(SabreTools.Serialization.Wrappers.LinearExecutable wrapper) : base(wrapper) { }
1414

1515
/// <inheritdoc/>
1616
public override string? Detect(Stream stream, string file, bool includeDebug)

BinaryObjectScanner/FileType/MSDOS.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace BinaryObjectScanner.FileType
1010
public class MSDOS : Executable<SabreTools.Serialization.Wrappers.MSDOS>
1111
{
1212
/// <inheritdoc/>
13-
public MSDOS(SabreTools.Serialization.Wrappers.MSDOS? wrapper) : base(wrapper) { }
13+
public MSDOS(SabreTools.Serialization.Wrappers.MSDOS wrapper) : base(wrapper) { }
1414

1515
/// <inheritdoc/>
1616
public override string? Detect(Stream stream, string file, bool includeDebug)

BinaryObjectScanner/FileType/NewExecutable.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace BinaryObjectScanner.FileType
1010
public class NewExecutable : Executable<SabreTools.Serialization.Wrappers.NewExecutable>
1111
{
1212
/// <inheritdoc/>
13-
public NewExecutable(SabreTools.Serialization.Wrappers.NewExecutable? wrapper) : base(wrapper) { }
13+
public NewExecutable(SabreTools.Serialization.Wrappers.NewExecutable wrapper) : base(wrapper) { }
1414

1515
/// <inheritdoc/>
1616
public override string? Detect(Stream stream, string file, bool includeDebug)

BinaryObjectScanner/FileType/PLJ.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace BinaryObjectScanner.FileType
99
public class PLJ : DetectableBase<PlayJAudioFile>
1010
{
1111
/// <inheritdoc/>
12-
public PLJ(PlayJAudioFile? wrapper) : base(wrapper) { }
12+
public PLJ(PlayJAudioFile wrapper) : base(wrapper) { }
1313

1414
/// <inheritdoc/>
1515
public override string? Detect(Stream stream, string file, bool includeDebug)

BinaryObjectScanner/FileType/PortableExecutable.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace BinaryObjectScanner.FileType
1010
public class PortableExecutable : Executable<SabreTools.Serialization.Wrappers.PortableExecutable>
1111
{
1212
/// <inheritdoc/>
13-
public PortableExecutable(SabreTools.Serialization.Wrappers.PortableExecutable? wrapper) : base(wrapper) { }
13+
public PortableExecutable(SabreTools.Serialization.Wrappers.PortableExecutable wrapper) : base(wrapper) { }
1414

1515
/// <inheritdoc/>
1616
public override string? Detect(Stream stream, string file, bool includeDebug)

0 commit comments

Comments
 (0)