Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: format code with dotnet-format #28

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/EmailAddress.cs
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ public static bool TryParse(string? s, IFormatProvider? formatProvider, out Emai
{
return From(s);
}
catch(Exception e) when (e is ValueObjectValidationException or ArgumentNullException or FormatException or OverflowException or ArgumentException or InvalidCastException or InvalidOperationException) { return Empty; }
catch (Exception e) when (e is ValueObjectValidationException or ArgumentNullException or FormatException or OverflowException or ArgumentException or InvalidCastException or InvalidOperationException) { return Empty; }
}

public static implicit operator string?(EmailAddress? addr) =>
Expand Down
2 changes: 1 addition & 1 deletion src/PhoneNumber.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public static bool TryParse(string s, out PhoneNumber? number)
number = From(s) with { OriginalString = s };
return true;
}
catch(Exception e) when (e is ValueObjectValidationException or ArgumentNullException or FormatException or OverflowException or ArgumentException or InvalidCastException or InvalidOperationException) { number = null; return false; }
catch (Exception e) when (e is ValueObjectValidationException or ArgumentNullException or FormatException or OverflowException or ArgumentException or InvalidCastException or InvalidOperationException) { number = null; return false; }
}

private const Rxo RegexOptions =
Expand Down
2 changes: 1 addition & 1 deletion src/iri.cs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public static bool TryCreate(string? uriString, UriKind uriKind, out iri iri)
return true;
}
}
catch(Exception e) when (e is ValueObjectValidationException or ArgumentNullException or FormatException or OverflowException or ArgumentException or InvalidCastException or InvalidOperationException) { /* ignore it */ }
catch (Exception e) when (e is ValueObjectValidationException or ArgumentNullException or FormatException or OverflowException or ArgumentException or InvalidCastException or InvalidOperationException) { /* ignore it */ }

iri = Empty;
return false;
Expand Down
2 changes: 1 addition & 1 deletion src/uri.cs
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ public static bool TryParse(string? s, out uri uri)
return true;
}
}
catch(Exception e) when (e is ValueObjectValidationException or ArgumentNullException or FormatException or OverflowException or ArgumentException or InvalidCastException or InvalidOperationException) { /* ignore it */ }
catch (Exception e) when (e is ValueObjectValidationException or ArgumentNullException or FormatException or OverflowException or ArgumentException or InvalidCastException or InvalidOperationException) { /* ignore it */ }

uri = Empty;
return false;
Expand Down
2 changes: 1 addition & 1 deletion src/url.cs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ public static bool TryParse(string? s, out url url)
return true;
}
}
catch(Exception e) when (e is ValueObjectValidationException or ArgumentNullException or FormatException or OverflowException or ArgumentException or InvalidCastException or InvalidOperationException) { /* ignore it */ }
catch (Exception e) when (e is ValueObjectValidationException or ArgumentNullException or FormatException or OverflowException or ArgumentException or InvalidCastException or InvalidOperationException) { /* ignore it */ }

url = Empty;
return false;
Expand Down
2 changes: 1 addition & 1 deletion src/urn.cs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ public static bool TryParse(string? s, out urn urn)
return true;
}
}
catch(Exception e) when (e is ValueObjectValidationException or ArgumentNullException or FormatException or OverflowException or ArgumentException or InvalidCastException or InvalidOperationException) { /* ignore it */ }
catch (Exception e) when (e is ValueObjectValidationException or ArgumentNullException or FormatException or OverflowException or ArgumentException or InvalidCastException or InvalidOperationException) { /* ignore it */ }

urn = Empty;
return false;
Expand Down
2 changes: 1 addition & 1 deletion src/xri.cs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public static bool TryParse(string? s, out xri xri)
return true;
}
}
catch(Exception e) when (e is ValueObjectValidationException or ArgumentNullException or FormatException or OverflowException or ArgumentException or InvalidCastException or InvalidOperationException) { /* ignore it */ }
catch (Exception e) when (e is ValueObjectValidationException or ArgumentNullException or FormatException or OverflowException or ArgumentException or InvalidCastException or InvalidOperationException) { /* ignore it */ }

xri = Empty;
return false;
Expand Down