diff src/ch/ethz/ssh2/packets/PacketChannelOpenFailure.java @ 308:42b15aaa7ac7 ganymed

merge
author Carl Byington <carl@five-ten-sg.com>
date Wed, 30 Jul 2014 14:21:50 -0700
parents 071eccdff8ea
children
line wrap: on
line diff
--- a/src/ch/ethz/ssh2/packets/PacketChannelOpenFailure.java	Wed Jul 30 13:38:04 2014 -0700
+++ b/src/ch/ethz/ssh2/packets/PacketChannelOpenFailure.java	Wed Jul 30 14:21:50 2014 -0700
@@ -29,15 +29,13 @@
 
     public PacketChannelOpenFailure(byte payload[]) throws IOException {
         this.payload = payload;
-
         TypesReader tr = new TypesReader(payload);
-
         int packet_type = tr.readByte();
 
-        if(packet_type != Packets.SSH_MSG_CHANNEL_OPEN_FAILURE) {
+        if (packet_type != Packets.SSH_MSG_CHANNEL_OPEN_FAILURE) {
             throw new IOException(
-                    "This is not a SSH_MSG_CHANNEL_OPEN_FAILURE! ("
-                            + packet_type + ")"
+                "This is not a SSH_MSG_CHANNEL_OPEN_FAILURE! ("
+                + packet_type + ")"
             );
         }
 
@@ -46,7 +44,7 @@
         String description = tr.readString();
         String languageTag = tr.readString();
 
-        if(tr.remain() != 0) {
+        if (tr.remain() != 0) {
             throw new PacketFormatException(String.format("Padding in %s", Packets.getMessageName(packet_type)));
         }
     }