Skip to content

Commit 996af54

Browse files
committed
Remove some duplicate code
1 parent 510ccdf commit 996af54

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/raven.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -960,12 +960,10 @@ Raven.prototype = {
960960

961961
// Include the release if it's defined in globalOptions
962962
if (globalOptions.release) data.release = globalOptions.release;
963+
963964
// Include server_name if it's defined in globalOptions
964965
if (globalOptions.serverName) data.server_name = globalOptions.serverName;
965966

966-
// Include the release if it's defined in globalOptions
967-
if (globalOptions.release) data.release = globalOptions.release;
968-
969967
if (isFunction(globalOptions.dataCallback)) {
970968
data = globalOptions.dataCallback(data) || data;
971969
}

0 commit comments

Comments
 (0)