Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NEW OBSERVATIONS: this is still vanity alignment: - let amountInWei = UnitConversion.Convert.ToWei (amount.ValueToSend, UnitConversion.EthUnit.Ether) + let amountInWei = + UnitConversion.Convert.ToWei ( + amount.ValueToSend, + UnitConversion.EthUnit.Ether + ) let gasLimit = BigInteger (txMetadata.Fee.GasLimit) let data = (TokenManager.OfflineTokenServiceWrapper currency) - .ComposeInputDataForTransferTransaction(origin, destination, amountInWei, gasLimit) + .ComposeInputDataForTransferTransaction(origin, + destination, + amountInWei, + gasLimit) another vanalign prob (at inherit()): -type public ElectrumServerReturningInternalErrorException (message: string, - code: int, - originalRequest: string, - originalResponse: string) = - inherit ElectrumServerReturningErrorException(message, code, originalRequest, originalResponse) +type public ElectrumServerReturningInternalErrorException + ( + message: string, + code: int, + originalRequest: string, + originalResponse: string + ) = + inherit ElectrumServerReturningErrorException (message, + code, + originalRequest, + originalResponse): another vanalign prob (at new()): - new(message: string, cloudFlareError: CloudFlareError, innerException: Exception) = - { inherit CommunicationUnsuccessfulException(SPrintF2 "%s (CfErr: %s)" message (cloudFlareError.ToString ()), - innerException) } + new (message: string, + webExStatusCode: WebExceptionStatus, + innerException: Exception) = + { inherit CommunicationUnsuccessfulException (SPrintF2 + "%s (WebErr: %s)" + message + (webExStatusCode.ToString + ()), + innerException) } new case for parens removal: ExtractPublicAddressFromConfigFileFunc = (fun file -> file.Name) and another one: let public SetupSentryHook () = - AppDomain.CurrentDomain.UnhandledException.AddHandler (UnhandledExceptionEventHandler (OnUnhandledException)) + AppDomain.CurrentDomain.UnhandledException.AddHandler ( + UnhandledExceptionEventHandler (OnUnhandledException) + ) no need to split the :: line: - acc.Add (head.PublicAddress, head.Currency.ToString () :: existingCurrenciesForHeadAddress) + acc.Add ( + head.PublicAddress, + head.Currency.ToString () + :: existingCurrenciesForHeadAddress + ) nit: - with ex when (FSharpUtil.FindException<ResourceUnavailabilityException> ex).IsSome -> return None + with ex when + (FSharpUtil.FindException<ResourceUnavailabilityException> ex) + .IsSome -> return None should be: - with ex when (FSharpUtil.FindException<ResourceUnavailabilityException> ex).IsSome -> return None + with ex when + (FSharpUtil.FindException<ResourceUnavailabilityException> ex).IsSome + -> return None REVIEW MERGED commit messages from prev history: New bugs: fsprojects/fantomas#1223 fsprojects/fantomas#1222 Things to report: - this should make it end with |> Some: let consistencyConfig = if mode = ServerSelectionMode.Fast then - Some (OneServerConsistentWithCertainValueOrTwoServers cacheOrInitialBalanceMatchFunc) + Some + (OneServerConsistentWithCertainValueOrTwoServers + cacheOrInitialBalanceMatchFunc) - are we sure it cannot be in a single line?: member __.GetLastCachedData (): CachedNetworkData = lock cacheFiles.CachedNetworkData - (fun _ -> sessionCachedNetworkData) + (fun _ -> sessionCachedNetworkData + ) - are we sure it cannot be in a single line?: raise (TlsNotSupportedYetInGWalletException ("TLS not yet supported")) raise ( TlsNotSupportedYetInGWalletException ("TLS not yet supported") )
- Loading branch information