Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minor refactor of constructor for comparison operator.
Justification: Since the comparison operator is only valid for bytesData, the constructor should recieve a byte slice as input and then convert it to registerData. It makes less sense to have the caller create the registerData from the byte slice if bytes data is the only type of registerData, we accept. This change removes unnecessary checks and makes the code a lot less wordy by removing the profuse amount of newBytesData calls for comparison construction. PiperOrigin-RevId: 670652077
- Loading branch information