Skip to content

Commit

Permalink
Codacy issues fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Konard committed Jul 30, 2019
1 parent 4445d5b commit 76992ca
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Link.cs
Expand Up @@ -301,7 +301,7 @@ public static Link Create(Link source, Link linker, Link target)
Link link = CreateLink(source, linker, target);
if (link == null)
{
throw new OutOfMemoryException();
throw new InvalidOperationException("Невозможно создать связь.");
}
CreatedEvent.Invoke(new LinkDefinition(link));
return link;
Expand Down
2 changes: 1 addition & 1 deletion Net.cs
Expand Up @@ -50,7 +50,7 @@ public enum NetMapping : long
Code
}

public class Net
public static class Net
{
public static Link Link { get; private set; }
public static Link Thing { get; private set; }
Expand Down
3 changes: 2 additions & 1 deletion NumberHelpers.cs
Expand Up @@ -70,7 +70,8 @@ public static Link FromNumber(long number)
{
if ((number & key) == key)
{
links[i++] = FromPowerOf2(powerOf2);
links[i] = FromPowerOf2(powerOf2);
i++;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion Sequences/SequenceHelpers.cs
Expand Up @@ -9,7 +9,7 @@ namespace Platform.Data.Triplets.Sequences
/// TODO: Check that CollectMatchingSequences algorithm is working, if not throw it away.
/// TODO: Think of the abstraction on Sequences that can be equally usefull for triple links, doublet links and so on.
/// </remarks>
public class SequenceHelpers
public static class SequenceHelpers
{
public static readonly int MaxSequenceFormatSize = 20;

Expand Down

0 comments on commit 76992ca

Please sign in to comment.