Merge pull request #17 from gmbrax/fix/Fix-Repeated-return-on-CreateBitDepthHandler

Remove duplicate `newBuilder` call in `CreateBitDepthHandler`
This commit is contained in:
Gustavo Henrique Miranda 2025-12-05 18:12:32 -03:00 committed by GitHub
commit 8c8b8ec765
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 1 deletions

View File

@ -42,7 +42,6 @@ public class CreateBitDepthHandler implements ActionHandler {
} catch (Exception e) { } catch (Exception e) {
logger.error("Error creating bit-depth", e); logger.error("Error creating bit-depth", e);
return TransportProtocol.Response.newBuilder()
return TransportProtocol.Response.newBuilder() return TransportProtocol.Response.newBuilder()
.setStatusCode(500) .setStatusCode(500)
.setPayload(ByteString.copyFromUtf8("Error: " + e.getMessage())); .setPayload(ByteString.copyFromUtf8("Error: " + e.getMessage()));