Skip to content

Commit

Permalink
cleanup2
Browse files Browse the repository at this point in the history
  • Loading branch information
JensKrumsieck committed Jun 18, 2021
1 parent 0ade8e1 commit 438546e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ChemSharp.Molecules/Atom.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ public string Title
// ReSharper enable NonReadonlyMemberInGetHashCode

public bool Equals(Atom other) =>
!(other is null) &&
other is not null &&
(ReferenceEquals(this, other)
|| _title == other._title && Location.Equals(other.Location));

public override bool Equals(object obj) =>
!(obj is null) &&
obj is not null &&
(ReferenceEquals(this, obj)
|| obj.GetType() == this.GetType() && Equals((Atom)obj));
}
Expand Down
2 changes: 1 addition & 1 deletion ChemSharp.Molecules/MoleculeFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ static MoleculeFactory()
/// </summary>
/// <param name="path"></param>
/// <returns></returns>
public static Molecule Create(string path) => new((IAtomDataProvider)CreateProvider(path));
public static Molecule Create(string path) => new(CreateProvider(path));

/// <summary>
/// Handles IDataProvider creation
Expand Down

0 comments on commit 438546e

Please sign in to comment.