Skip to content
This repository was archived by the owner on Apr 3, 2020. It is now read-only.

Commit 267aeeb

Browse files
ishermandomCommit bot
authored and
Commit bot
committed
[Clean-up] Remove unnecessary default: NOTREACHED() case.
The (clang) compiler is smart enough to catch this error at compile-time, which is better than waiting until runtime. BUG=none TEST=none [email protected] Review URL: https://codereview.chromium.org/575343002 Cr-Commit-Position: refs/heads/master@{#297060}
1 parent 282ba30 commit 267aeeb

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

extensions/browser/api/bluetooth_socket/bluetooth_api_socket.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,6 @@ void BluetoothApiSocket::OnSocketReceiveError(
140140
case device::BluetoothSocket::kSystemError:
141141
error_reason = BluetoothApiSocket::kSystemError;
142142
break;
143-
default:
144-
NOTREACHED();
145143
}
146144
error_callback.Run(error_reason, message);
147145
}

0 commit comments

Comments
 (0)