Skip to content

Instantly share code, notes, and snippets.

@vjeux
Created February 4, 2017 19:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vjeux/78e3d95aaa2af173fd4c85999e455dba to your computer and use it in GitHub Desktop.
Save vjeux/78e3d95aaa2af173fd4c85999e455dba to your computer and use it in GitHub Desktop.
diff --git a/pkg/commons-atom/AutocompleteCacher.js b/pkg/commons-atom/AutocompleteCacher.js
index 8c64580..c040e56 100644
--- a/pkg/commons-atom/AutocompleteCacher.js
+++ b/pkg/commons-atom/AutocompleteCacher.js
@@ -14,9 +14,8 @@ export type AutocompleteCacherConfig<T> = {|
// verifying that the cursor has only moved by one column since the last request.
shouldFilter?: (
lastRequest: atom$AutocompleteRequest,
- currentRequest: atom$AutocompleteRequest,
- ) => /* TODO pass originalResult here if any client requires it*/
- boolean,
+ currentRequest: atom$AutocompleteRequest /* TODO pass originalResult here if any client requires it*/,
+ ) => boolean,
|};
type AutocompleteSession<T> = {
diff --git a/pkg/commons-atom/debounced.js b/pkg/commons-atom/debounced.js
index 099c03b..c1db027 100644
--- a/pkg/commons-atom/debounced.js
+++ b/pkg/commons-atom/debounced.js
@@ -53,11 +53,7 @@ export function editorChangesDebounced(
debounceInterval: number = DEFAULT_EDITOR_DEBOUNCE_INTERVAL_MS,
): Observable<void> {
return observableFromSubscribeFunction(callback =>
- editor.onDidChange(
- callback,
- ))// Debounce manually rather than using editor.onDidStopChanging so that the debounce time is
- // configurable.
- .debounceTime(debounceInterval);
+ editor.onDidChange(callback)).debounceTime(debounceInterval);
}
export function editorScrollTopDebounced(
diff --git a/pkg/commons-atom/projects.js b/pkg/commons-atom/projects.js
index fa3d13c..7669438 100644
--- a/pkg/commons-atom/projects.js
+++ b/pkg/commons-atom/projects.js
@@ -26,7 +26,7 @@ function getValidProjectPaths(): Array<string> {
// isn't yet ready for consumption.
if (
nuclideUri.isRemote(directory.getPath()) &&
- directory instanceof Directory
+ directory instanceof Directory
) {
return false;
}
diff --git a/pkg/commons-atom/vcs.js b/pkg/commons-atom/vcs.js
index 502d835..4dfdecd 100644
--- a/pkg/commons-atom/vcs.js
+++ b/pkg/commons-atom/vcs.js
@@ -231,10 +231,9 @@ async function hgActionToPath(
export function getHgRepositories(): Set<HgRepositoryClient> {
return new Set(
- (arrayCompact(
- atom.project.getRepositories(),
- )// Flow doesn't understand that this filters to hg repositories only, so cast through `any`
- .filter(repository => repository.getType() === 'hg'): Array<any>),
+ (arrayCompact(atom.project.getRepositories()).filter(
+ repository => repository.getType() === 'hg',
+ ): Array<any>),
);
}
diff --git a/pkg/commons-node/collection.js b/pkg/commons-node/collection.js
index 4a1f538..d311961 100644
--- a/pkg/commons-node/collection.js
+++ b/pkg/commons-node/collection.js
@@ -300,7 +300,7 @@ export function objectEntries<T>(obj: {[key: string]: T}): Array<[string, T]> {
for (const key in obj) {
if (
obj.hasOwnProperty(key) &&
- Object.prototype.propertyIsEnumerable.call(obj, key)
+ Object.prototype.propertyIsEnumerable.call(obj, key)
) {
entries.push([key, obj[key]]);
}
diff --git a/pkg/commons-node/nuclideUri.js b/pkg/commons-node/nuclideUri.js
index e918168..72a8e13 100644
--- a/pkg/commons-node/nuclideUri.js
+++ b/pkg/commons-node/nuclideUri.js
@@ -192,7 +192,7 @@ function relative(uri: NuclideUri, other: NuclideUri): string {
const remote = isRemote(uri);
if (
remote !== isRemote(other) ||
- remote && getHostname(uri) !== getHostname(other)
+ remote && getHostname(uri) !== getHostname(other)
) {
throw new Error(
`Cannot relative urls on different hosts: ${uri} and ${other}`,
@@ -537,7 +537,7 @@ function _pathModuleFor(uri: NuclideUri): typeof pathModule {
if (
uri.split(pathModule.win32.sep).length >
- uri.split(pathModule.posix.sep).length
+ uri.split(pathModule.posix.sep).length
) {
return pathModule.win32;
} else {
diff --git a/pkg/commons-node/scheduleIdleCallback.js b/pkg/commons-node/scheduleIdleCallback.js
index abdcafc..b102a22 100644
--- a/pkg/commons-node/scheduleIdleCallback.js
+++ b/pkg/commons-node/scheduleIdleCallback.js
@@ -22,10 +22,8 @@
import invariant from 'assert';
-export default (global.requestIdleCallback
- ? // Using Browser API
- // Is guaranteed to resolve after `timeout` milliseconds.
- (function scheduleIdleCallback(
+export default (global.requestIdleCallback // Using Browser API // Is guaranteed to resolve after `timeout` milliseconds.
+ ? (function scheduleIdleCallback(
callback_: () => void,
options?: {
afterRemainingTime?: 30 | 40 | 49,
@@ -40,7 +38,7 @@ export default (global.requestIdleCallback
function fn(deadline) {
if (
deadline.timeRemaining() >= afterRemainingTime ||
- Date.now() - startTime >= timeout
+ Date.now() - startTime >= timeout
) {
invariant(callback != null);
callback(deadline);
@@ -60,9 +58,8 @@ export default (global.requestIdleCallback
}
},
};
- })
- : // Using Node API
- (function scheduleIdleCallback(
+ }) // Using Node API
+ : (function scheduleIdleCallback(
callback: () => void,
options?: {
afterRemainingTime?: 30 | 40 | 49,
diff --git a/pkg/commons-node/spec/nice-spec.js b/pkg/commons-node/spec/nice-spec.js
index 649a640..6e4439b 100644
--- a/pkg/commons-node/spec/nice-spec.js
+++ b/pkg/commons-node/spec/nice-spec.js
@@ -41,7 +41,7 @@ describe('nice', () => {
whichSpy = spyOn(require('../which'), 'default').andCallFake(command => {
if (
shouldFindNiceCommand && command === 'nice' ||
- shouldFindIoniceCommand && command === 'ionice'
+ shouldFindIoniceCommand && command === 'ionice'
) {
return command;
} else {
diff --git a/pkg/commons-node/wootr.js b/pkg/commons-node/wootr.js
index f4b2b74..5d61918 100644
--- a/pkg/commons-node/wootr.js
+++ b/pkg/commons-node/wootr.js
@@ -125,9 +125,9 @@ export class WString {
// [begin][id:1,1; len: 2, vis: 1;][id:1,4; len: 1, vis: 1;][id:1,3; len: 2, vis: 1;][end]
if (
leftHalf.startId.site === c.startId.site &&
- leftHalf.startId.h === c.startId.h - leftHalf.length &&
- offset === leftHalf.length &&
- c.visible === leftHalf.visible
+ leftHalf.startId.h === c.startId.h - leftHalf.length &&
+ offset === leftHalf.length &&
+ c.visible === leftHalf.visible
) {
leftHalf.length += c.length;
} else if (offset === leftHalf.length) {
@@ -181,7 +181,7 @@ export class WString {
) {
if (
this._string[originalIndex].length > offset &&
- this._string[originalIndex].visible
+ this._string[originalIndex].visible
) {
break;
}
@@ -240,9 +240,9 @@ export class WString {
const currentRun = this._string[i];
if (
currentRun.startId.site === c.id.site &&
- currentRun.startId.h <= c.id.h &&
- currentRun.startId.h + currentRun.length > c.id.h &&
- (!visibleOnly || this._string[i].visible)
+ currentRun.startId.h <= c.id.h &&
+ currentRun.startId.h + currentRun.length > c.id.h &&
+ (!visibleOnly || this._string[i].visible)
) {
return currentOffset + (c.id.h - currentRun.startId.h);
}
@@ -271,7 +271,7 @@ export class WString {
for (i = 0; i < this._string.length; i++) {
if (
this._string[i].length > offset &&
- (!visibleOnly || this._string[i].visible)
+ (!visibleOnly || this._string[i].visible)
) {
break;
}
diff --git a/pkg/nuclide-adb-logcat/lib/Activation.js b/pkg/nuclide-adb-logcat/lib/Activation.js
index 3a2f074..47526ad 100644
--- a/pkg/nuclide-adb-logcat/lib/Activation.js
+++ b/pkg/nuclide-adb-logcat/lib/Activation.js
@@ -25,8 +25,7 @@ export default class Activation {
constructor(state: ?Object) {
const message$ = Observable.defer(() => createMessageStream(
- createProcessStream()// Retry 3 times (unless we get a ENOENT)
- .retryWhen(errors => errors.scan(
+ createProcessStream().retryWhen(errors => errors.scan(
(errCount, err) => {
if (isNoEntError(err) || errCount >= 2) {
throw err;
diff --git a/pkg/nuclide-arcanist/lib/ArcanistDiagnosticsProvider.js b/pkg/nuclide-arcanist/lib/ArcanistDiagnosticsProvider.js
index 459df7a..192f902 100644
--- a/pkg/nuclide-arcanist/lib/ArcanistDiagnosticsProvider.js
+++ b/pkg/nuclide-arcanist/lib/ArcanistDiagnosticsProvider.js
@@ -124,10 +124,10 @@ export class ArcanistDiagnosticsProvider {
const maybeProperties = {};
if (
diagnostic.original != null &&
- diagnostic.replacement != null &&
- // Sometimes linters set original and replacement to the same value. Obviously that won't
- // fix anything.
- diagnostic.original !== diagnostic.replacement
+ diagnostic.replacement != null &&
+ // Sometimes linters set original and replacement to the same value. Obviously that won't
+ // fix anything.
+ diagnostic.original !== diagnostic.replacement
) {
// Copy the object so the type refinements hold...
maybeProperties.fix = this._getFix({...diagnostic});
diff --git a/pkg/nuclide-bookshelf/lib/utils.js b/pkg/nuclide-bookshelf/lib/utils.js
index bd94549..b353b18 100644
--- a/pkg/nuclide-bookshelf/lib/utils.js
+++ b/pkg/nuclide-bookshelf/lib/utils.js
@@ -61,7 +61,7 @@ export function deserializeBookShelfState(
): BookShelfState {
if (
serializedBookShelfState == null ||
- serializedBookShelfState.repositoryPathToState == null
+ serializedBookShelfState.repositoryPathToState == null
) {
return getEmptBookShelfState();
}
diff --git a/pkg/nuclide-buck-rpc/lib/BuckService.js b/pkg/nuclide-buck-rpc/lib/BuckService.js
index fe45928..46b97c0 100644
--- a/pkg/nuclide-buck-rpc/lib/BuckService.js
+++ b/pkg/nuclide-buck-rpc/lib/BuckService.js
@@ -579,7 +579,7 @@ export async function buildRuleTypeFor(
// Don't prepend this for aliases though (aliases will not have colons or .)
if (
(canonicalName.indexOf(':') !== -1 || canonicalName.indexOf('.') !== -1) &&
- !canonicalName.startsWith('//')
+ !canonicalName.startsWith('//')
) {
canonicalName = '//' + canonicalName;
}
diff --git a/pkg/nuclide-buck/lib/BuckBuildSystem.js b/pkg/nuclide-buck/lib/BuckBuildSystem.js
index 11fb5f3..fdbb0dd 100644
--- a/pkg/nuclide-buck/lib/BuckBuildSystem.js
+++ b/pkg/nuclide-buck/lib/BuckBuildSystem.js
@@ -271,8 +271,7 @@ export class BuckBuildSystem {
const rootEpic = (actions, store) => combineEpics(...epics)(
actions,
store,
- )// Log errors and continue.
- .catch((err, stream) => {
+ ).catch((err, stream) => {
getLogger().error(err);
return stream;
});
@@ -351,9 +350,9 @@ export class BuckBuildSystem {
let outputPath;
if (
output == null ||
- output[0] == null ||
- output[0]['buck.outputPath'] == null ||
- (outputPath = output[0]['buck.outputPath'].trim()) === ''
+ output[0] == null ||
+ output[0]['buck.outputPath'] == null ||
+ (outputPath = output[0]['buck.outputPath'].trim()) === ''
) {
throw new Error(
"Couldn't determine binary path from Buck output!",
diff --git a/pkg/nuclide-buck/lib/BuckEventStream.js b/pkg/nuclide-buck/lib/BuckEventStream.js
index 672351c..38972e5 100644
--- a/pkg/nuclide-buck/lib/BuckEventStream.js
+++ b/pkg/nuclide-buck/lib/BuckEventStream.js
@@ -108,9 +108,9 @@ export function getEventsFromSocket(
const progressEvents = eventStream.switchMap(event => {
if (
event.type === 'progress' &&
- event.progress != null &&
- event.progress > 0 &&
- event.progress < 1
+ event.progress != null &&
+ event.progress > 0 &&
+ event.progress < 1
) {
return log(`Building... [${Math.round(event.progress * 100)}%]`);
}
diff --git a/pkg/nuclide-buck/lib/observeBuildCommands.js b/pkg/nuclide-buck/lib/observeBuildCommands.js
index de9643a..3121e7e 100644
--- a/pkg/nuclide-buck/lib/observeBuildCommands.js
+++ b/pkg/nuclide-buck/lib/observeBuildCommands.js
@@ -47,9 +47,9 @@ export default function observeBuildCommands(store: Store): IDisposable {
// Only report simple single-target build commands for now.
if (
Date.now() - timestamp > CHECK_INTERVAL ||
- command !== 'build' ||
- args.length !== 1 ||
- args[0].startsWith('-')
+ command !== 'build' ||
+ args.length !== 1 ||
+ args[0].startsWith('-')
) {
return Observable.empty();
}
diff --git a/pkg/nuclide-buck/lib/redux/Actions.js b/pkg/nuclide-buck/lib/redux/Actions.js
index d1a5ec6..7e8ea42 100644
--- a/pkg/nuclide-buck/lib/redux/Actions.js
+++ b/pkg/nuclide-buck/lib/redux/Actions.js
@@ -26,9 +26,8 @@ export type Action =
| {|
type: 'SET_TASK_SETTINGS',
settings: TaskSettings,
- |}
- | /* The actions below are meant to be used in Epics only.*/
- {|
+ |} /* The actions below are meant to be used in Epics only.*/
+ | {|
type: 'SET_BUCK_ROOT',
buckRoot: ?string,
|}
diff --git a/pkg/nuclide-busy-signal/lib/BusySignalProviderBase.js b/pkg/nuclide-busy-signal/lib/BusySignalProviderBase.js
index 5c67d1c..24d3220 100644
--- a/pkg/nuclide-busy-signal/lib/BusySignalProviderBase.js
+++ b/pkg/nuclide-busy-signal/lib/BusySignalProviderBase.js
@@ -58,8 +58,8 @@ export class BusySignalProviderBase {
atom.workspace.observeActivePaneItem(item => {
if (
item != null &&
- typeof item.getPath === 'function' &&
- item.getPath() === options.onlyForFile
+ typeof item.getPath === 'function' &&
+ item.getPath() === options.onlyForFile
) {
if (displayedDisposable == null) {
displayedDisposable = this._displayMessage(message);
diff --git a/pkg/nuclide-clang-rpc/lib/ClangFlagsManager.js b/pkg/nuclide-clang-rpc/lib/ClangFlagsManager.js
index ce0b5de..e338584 100644
--- a/pkg/nuclide-clang-rpc/lib/ClangFlagsManager.js
+++ b/pkg/nuclide-clang-rpc/lib/ClangFlagsManager.js
@@ -474,7 +474,7 @@ export default class ClangFlagsManager {
for (const file of files) {
if (
isSourceFile(file) &&
- ClangFlagsManager._getFileBasename(file) === basename
+ ClangFlagsManager._getFileBasename(file) === basename
) {
return nuclideUri.join(dir, file);
}
diff --git a/pkg/nuclide-clang/lib/ClangLinter.js b/pkg/nuclide-clang/lib/ClangLinter.js
index 7905481..3755c53 100644
--- a/pkg/nuclide-clang/lib/ClangLinter.js
+++ b/pkg/nuclide-clang/lib/ClangLinter.js
@@ -87,7 +87,7 @@ export default class ClangLinter {
invariant(bufferPath != null);
if (
data.accurateFlags ||
- featureConfig.get('nuclide-clang.defaultDiagnostics')
+ featureConfig.get('nuclide-clang.defaultDiagnostics')
) {
data.diagnostics.forEach(diagnostic => {
// We show only warnings, errors and fatals (2, 3 and 4, respectively).
diff --git a/pkg/nuclide-clang/lib/DefinitionHelpers.js b/pkg/nuclide-clang/lib/DefinitionHelpers.js
index 218e483..180a09f 100644
--- a/pkg/nuclide-clang/lib/DefinitionHelpers.js
+++ b/pkg/nuclide-clang/lib/DefinitionHelpers.js
@@ -69,7 +69,7 @@ export default class DefinitionHelpers {
position: result.point,
range: result.extent,
language: 'clang'
- // TODO: projectRoot,
+ // TODO: projectRoot,,,
};
if (result.spelling != null) {
diff --git a/pkg/nuclide-code-format/lib/CodeFormatManager.js b/pkg/nuclide-code-format/lib/CodeFormatManager.js
index 4d502de..306517e 100644
--- a/pkg/nuclide-code-format/lib/CodeFormatManager.js
+++ b/pkg/nuclide-code-format/lib/CodeFormatManager.js
@@ -127,7 +127,7 @@ export default class CodeFormatManager {
const provider = matchingProviders[0];
if (
provider.formatCode != null &&
- (!selectionRangeEmpty || provider.formatEntireFile == null)
+ (!selectionRangeEmpty || provider.formatEntireFile == null)
) {
const formatted = await provider.formatCode(editor, formatRange);
// Throws if contents have changed since the time of triggering format code.
diff --git a/pkg/nuclide-console/lib/LogTailer.js b/pkg/nuclide-console/lib/LogTailer.js
index 576ea84..5a5b1d2 100644
--- a/pkg/nuclide-console/lib/LogTailer.js
+++ b/pkg/nuclide-console/lib/LogTailer.js
@@ -71,10 +71,8 @@ export class LogTailer {
this._errorHandler = options.handleError;
const messages = options.messages.share();
this._ready = options.ready == null
- ? null
- : // Guard against a never-ending ready stream.
- // $FlowFixMe: Add `materialize()` to Rx defs
- options.ready.takeUntil(messages.materialize().takeLast(1));
+ ? null // Guard against a never-ending ready stream. // $FlowFixMe: Add `materialize()` to Rx defs
+ : options.ready.takeUntil(messages.materialize().takeLast(1));
this._runningCallbacks = [];
this._startCount = 0;
this._statuses = new BehaviorSubject('stopped');
diff --git a/pkg/nuclide-console/lib/redux/Epics.js b/pkg/nuclide-console/lib/redux/Epics.js
index 449d7a0..6270c4d 100644
--- a/pkg/nuclide-console/lib/redux/Epics.js
+++ b/pkg/nuclide-console/lib/redux/Epics.js
@@ -65,8 +65,7 @@ export function executeEpic(
text: code,
scopeName: executor.scopeName,
}),
- )// Execute the code as a side-effect.
- .finally(() => {
+ ).finally(() => {
executor.send(code);
});
});
diff --git a/pkg/nuclide-console/lib/ui/Console.js b/pkg/nuclide-console/lib/ui/Console.js
index 227f648..97ec07e 100644
--- a/pkg/nuclide-console/lib/ui/Console.js
+++ b/pkg/nuclide-console/lib/ui/Console.js
@@ -137,7 +137,8 @@ export default class Console extends React.Component {
onSelectedSourcesChange={this.props.selectSources}
/>
{
- /*
+
+ /*
We need an extra wrapper element here in order to have the new messages notification stick
to the bottom of the scrollable area (and not scroll with it).
*/
diff --git a/pkg/nuclide-console/lib/ui/UnseenMessagesNotification.js b/pkg/nuclide-console/lib/ui/UnseenMessagesNotification.js
index f7312b9..6a824da 100644
--- a/pkg/nuclide-console/lib/ui/UnseenMessagesNotification.js
+++ b/pkg/nuclide-console/lib/ui/UnseenMessagesNotification.js
@@ -32,6 +32,7 @@ export default class NewMessagesNotification extends React.Component {
<div className={className} onClick={this.props.onClick}>
<span className="nuclide-console-new-messages-notification-icon icon icon-nuclicon-arrow-down" />
+
New Messages
</div>
);
diff --git a/pkg/nuclide-datatip/lib/DatatipManager.js b/pkg/nuclide-datatip/lib/DatatipManager.js
index e902fe6..c9662b9 100644
--- a/pkg/nuclide-datatip/lib/DatatipManager.js
+++ b/pkg/nuclide-datatip/lib/DatatipManager.js
@@ -435,8 +435,8 @@ class DatatipManagerForEditor {
if (
this._blacklistedPosition &&
- data.range &&
- data.range.containsPoint(this._blacklistedPosition)
+ data.range &&
+ data.range.containsPoint(this._blacklistedPosition)
) {
this._setState(DatatipState.HIDDEN);
return;
@@ -445,8 +445,8 @@ class DatatipManagerForEditor {
const currentPosition = getPosition();
if (
!currentPosition ||
- !data.range ||
- !data.range.containsPoint(currentPosition)
+ !data.range ||
+ !data.range.containsPoint(currentPosition)
) {
this._setState(DatatipState.HIDDEN);
return;
@@ -473,7 +473,7 @@ class DatatipManagerForEditor {
_hideOrCancel(): void {
if (
this._datatipState === DatatipState.HIDDEN ||
- this._datatipState === DatatipState.FETCHING
+ this._datatipState === DatatipState.FETCHING
) {
this._blacklistedPosition = getBufferPosition(
this._editor,
@@ -512,8 +512,8 @@ class DatatipManagerForEditor {
);
if (
currentPosition &&
- this._range &&
- this._range.containsPoint(currentPosition)
+ this._range &&
+ this._range.containsPoint(currentPosition)
) {
return;
}
@@ -562,11 +562,11 @@ class DatatipManagerForEditor {
if (
this._datatipState === DatatipState.HIDDEN &&
- // Unfortunately, when you do keydown of the shortcut, it's going to
- // hide it, we need to make sure that when we do keyup, it doesn't show
- // it up right away. We assume that a keypress is done within 100ms
- // and don't show it again if it was hidden so soon.
- performance.now() - this._lastHiddenTime > 100
+ // Unfortunately, when you do keydown of the shortcut, it's going to
+ // hide it, we need to make sure that when we do keyup, it doesn't show
+ // it up right away. We assume that a keypress is done within 100ms
+ // and don't show it again if it was hidden so soon.
+ performance.now() - this._lastHiddenTime > 100
) {
this._startFetching(() => this._editor.getCursorScreenPosition());
return;
diff --git a/pkg/nuclide-debugger-iwdp-rpc/lib/BreakpointManager.js b/pkg/nuclide-debugger-iwdp-rpc/lib/BreakpointManager.js
index 9676740..6e2096f 100644
--- a/pkg/nuclide-debugger-iwdp-rpc/lib/BreakpointManager.js
+++ b/pkg/nuclide-debugger-iwdp-rpc/lib/BreakpointManager.js
@@ -185,8 +185,8 @@ export class BreakpointManager {
// We will receive multiple responses, so just send the first non-error one.
if (
response.result != null &&
- response.error == null &&
- response.result.breakpointId != null
+ response.error == null &&
+ response.result.breakpointId != null
) {
breakpoint.jscId = response.result.breakpointId;
response.result.breakpointId = nuclideId;
diff --git a/pkg/nuclide-debugger-native/lib/AttachUIComponent.js b/pkg/nuclide-debugger-native/lib/AttachUIComponent.js
index c18f933..9c90e04 100644
--- a/pkg/nuclide-debugger-native/lib/AttachUIComponent.js
+++ b/pkg/nuclide-debugger-native/lib/AttachUIComponent.js
@@ -207,7 +207,7 @@ export class AttachUIComponent
};
if (
selectedAttachTarget != null &&
- row.data.pid === selectedAttachTarget.pid
+ row.data.pid === selectedAttachTarget.pid
) {
selectedIndex = index;
}
diff --git a/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/InjectorServer.js b/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/InjectorServer.js
index e3228d2..fb5c4c1 100644
--- a/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/InjectorServer.js
+++ b/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/InjectorServer.js
@@ -54,9 +54,9 @@ function injectorServer(options) {
// Special check for NaN as NaN == NaN is false.
if (
mirror.isNumber() &&
- isNaN(mirror.value()) &&
- cached.isNumber() &&
- isNaN(cached.value())
+ isNaN(mirror.value()) &&
+ cached.isNumber() &&
+ isNaN(cached.value())
) {
return true;
}
diff --git a/pkg/nuclide-debugger-node-rpc/VendorLib/node_modules/debug/node.js b/pkg/nuclide-debugger-node-rpc/VendorLib/node_modules/debug/node.js
index 58445a9..14a9981 100644
--- a/pkg/nuclide-debugger-node-rpc/VendorLib/node_modules/debug/node.js
+++ b/pkg/nuclide-debugger-node-rpc/VendorLib/node_modules/debug/node.js
@@ -56,13 +56,11 @@ function useColors() {
* Map %o to `util.inspect()`, since Node doesn't do that out of the box.
*/
-var inspect = 4 === util.inspect.length
- ? // node <= 0.8.x
- (function(v, colors) {
+var inspect = 4 === util.inspect.length // node <= 0.8.x
+ ? (function(v, colors) {
return util.inspect(v, void 0, void 0, colors);
- })
- : // node > 0.8.x
- (function(v, colors) {
+ }) // node > 0.8.x
+ : (function(v, colors) {
return util.inspect(v, {colors: colors});
});
diff --git a/pkg/nuclide-debugger-node-rpc/VendorLib/node_modules/v8-debug/InjectedScript/DebuggerScript.js b/pkg/nuclide-debugger-node-rpc/VendorLib/node_modules/v8-debug/InjectedScript/DebuggerScript.js
index 0f3c72c..22d8bf4 100644
--- a/pkg/nuclide-debugger-node-rpc/VendorLib/node_modules/v8-debug/InjectedScript/DebuggerScript.js
+++ b/pkg/nuclide-debugger-node-rpc/VendorLib/node_modules/v8-debug/InjectedScript/DebuggerScript.js
@@ -231,7 +231,7 @@
if (
DebuggerScript.PauseOnExceptionsState.PauseOnUncaughtExceptions ===
- newState
+ newState
)
Debug.setBreakOnUncaughtException();
else
@@ -557,7 +557,7 @@
// Also drop empty Block scopes, should we get any.
if (
!properties.length &&
- (scopeType === ScopeType.Script || scopeType === ScopeType.Block)
+ (scopeType === ScopeType.Script || scopeType === ScopeType.Block)
)
break;
result = {__proto__: null};
diff --git a/pkg/nuclide-debugger-node-rpc/VendorLib/node_modules/v8-debug/InjectedScript/InjectedScriptSource.js b/pkg/nuclide-debugger-node-rpc/VendorLib/node_modules/v8-debug/InjectedScript/InjectedScriptSource.js
index 92d9109..dcc3409 100644
--- a/pkg/nuclide-debugger-node-rpc/VendorLib/node_modules/v8-debug/InjectedScript/InjectedScriptSource.js
+++ b/pkg/nuclide-debugger-node-rpc/VendorLib/node_modules/v8-debug/InjectedScript/InjectedScriptSource.js
@@ -589,15 +589,15 @@
if (descriptor) {
if (
accessorPropertiesOnly &&
- !('get' in descriptor || 'set' in descriptor)
+ !('get' in descriptor || 'set' in descriptor)
)
continue;
if (
'get' in descriptor &&
- 'set' in descriptor &&
- name != '__proto__' &&
- InjectedScriptHost.isDOMWrapper(object) &&
- !doesAttributeHaveObservableSideEffectOnGet(object, name)
+ 'set' in descriptor &&
+ name != '__proto__' &&
+ InjectedScriptHost.isDOMWrapper(object) &&
+ !doesAttributeHaveObservableSideEffectOnGet(object, name)
) {
descriptor.value = InjectedScriptHost.suppressWarningsAndCallFunction(
function(attribute) {
@@ -1387,8 +1387,8 @@
if (
injectedScript.isPrimitiveValue(object) ||
- object === null ||
- forceValueType
+ object === null ||
+ forceValueType
) {
// We don't send undefined values over JSON.
if (this.type !== 'undefined') this.value = object;
@@ -1585,8 +1585,8 @@
if (
this.subtype === 'map' ||
- this.subtype === 'set' ||
- this.subtype === 'iterator'
+ this.subtype === 'set' ||
+ this.subtype === 'iterator'
)
this._appendEntriesPreview(object, preview, skipEntriesPreview);
} catch (e) {
diff --git a/pkg/nuclide-debugger-node-rpc/VendorLib/node_modules/v8-profiler/v8-profiler.js b/pkg/nuclide-debugger-node-rpc/VendorLib/node_modules/v8-profiler/v8-profiler.js
index cf8dda8..7e043bc 100644
--- a/pkg/nuclide-debugger-node-rpc/VendorLib/node_modules/v8-profiler/v8-profiler.js
+++ b/pkg/nuclide-debugger-node-rpc/VendorLib/node_modules/v8-profiler/v8-profiler.js
@@ -197,7 +197,7 @@ var profiler = {
startProfiling: function(name, recsamples) {
if (
activeProfiles.length == 0 &&
- typeof process._startProfilerIdleNotifier == 'function'
+ typeof process._startProfilerIdleNotifier == 'function'
)
process._startProfilerIdleNotifier();
@@ -229,7 +229,7 @@ var profiler = {
if (
activeProfiles.length == 0 &&
- typeof process._stopProfilerIdleNotifier == 'function'
+ typeof process._stopProfilerIdleNotifier == 'function'
)
process._stopProfilerIdleNotifier();
diff --git a/pkg/nuclide-debugger-node-rpc/lib/NodeDebuggerHost.js b/pkg/nuclide-debugger-node-rpc/lib/NodeDebuggerHost.js
index f33ac97..461ef1a 100644
--- a/pkg/nuclide-debugger-node-rpc/lib/NodeDebuggerHost.js
+++ b/pkg/nuclide-debugger-node-rpc/lib/NodeDebuggerHost.js
@@ -47,7 +47,7 @@ export class NodeDebuggerHost {
debugPort,
preload: false, // This makes the node inspector not load all the source files on startup.
inject: false // This causes the node inspector to fail to send an initial pause message
- // on attach. We don't use this feature, so we turn it off.,
+ // on attach. We don't use this feature, so we turn it off.,,,
};
const session = new Session(config, debugPort, websocket);
Observable.fromEvent(session, 'close').subscribe(this._close$);
diff --git a/pkg/nuclide-debugger-node/lib/AttachUIComponent.js b/pkg/nuclide-debugger-node/lib/AttachUIComponent.js
index a2a137d..7c1b86f 100644
--- a/pkg/nuclide-debugger-node/lib/AttachUIComponent.js
+++ b/pkg/nuclide-debugger-node/lib/AttachUIComponent.js
@@ -211,7 +211,7 @@ export class AttachUIComponent
};
if (
selectedAttachTarget != null &&
- row.data.pid === selectedAttachTarget.pid
+ row.data.pid === selectedAttachTarget.pid
) {
selectedIndex = index;
}
diff --git a/pkg/nuclide-debugger-php-rpc/lib/Connection.js b/pkg/nuclide-debugger-php-rpc/lib/Connection.js
index 1128cfe..a90705d 100644
--- a/pkg/nuclide-debugger-php-rpc/lib/Connection.js
+++ b/pkg/nuclide-debugger-php-rpc/lib/Connection.js
@@ -114,7 +114,7 @@ export class Connection {
}
if (
newStatus === ConnectionStatus.BreakMessageReceived &&
- prevStatus !== ConnectionStatus.BreakMessageSent
+ prevStatus !== ConnectionStatus.BreakMessageSent
) {
return;
}
diff --git a/pkg/nuclide-debugger-php-rpc/lib/ConnectionMultiplexer.js b/pkg/nuclide-debugger-php-rpc/lib/ConnectionMultiplexer.js
index ff18be2..5954cac 100644
--- a/pkg/nuclide-debugger-php-rpc/lib/ConnectionMultiplexer.js
+++ b/pkg/nuclide-debugger-php-rpc/lib/ConnectionMultiplexer.js
@@ -381,7 +381,7 @@ export class ConnectionMultiplexer {
if (
this._status === ConnectionMultiplexerStatus.SingleConnectionPaused ||
- this._status === ConnectionMultiplexerStatus.AllConnectionsPaused
+ this._status === ConnectionMultiplexerStatus.AllConnectionsPaused
) {
logger.log('Mux already in break status');
return;
@@ -431,7 +431,7 @@ export class ConnectionMultiplexer {
_pauseConnectionsIfNeeded(): void {
if (
getConfig().stopOneStopAll &&
- this._status !== ConnectionMultiplexerStatus.UserAsyncBreakSent
+ this._status !== ConnectionMultiplexerStatus.UserAsyncBreakSent
) {
this._asyncBreak();
}
@@ -474,7 +474,7 @@ export class ConnectionMultiplexer {
_handlePotentialRequestSwitch(connection: Connection): void {
if (
this._previousConnection != null &&
- connection !== this._previousConnection
+ connection !== this._previousConnection
) {
// The enabled connection is different than it was last time the debugger paused
// so we know that the active request has switched so we should alert the user.
@@ -611,8 +611,8 @@ export class ConnectionMultiplexer {
for (const connection of this._connections.values()) {
if (
connection !== this._enabledConnection &&
- (connection.getStopReason() === ASYNC_BREAK ||
- connection.getStatus() === ConnectionStatus.Starting)
+ (connection.getStopReason() === ASYNC_BREAK ||
+ connection.getStatus() === ConnectionStatus.Starting)
) {
connection.sendContinuationCommand(COMMAND_RUN);
}
@@ -691,9 +691,9 @@ export class ConnectionMultiplexer {
async _checkForEnd(): Promise<void> {
if (
this._onlyDummyRemains() &&
- (this._attachConnector == null ||
- this._launchConnector == null ||
- getConfig().endDebugWhenNoRequests)
+ (this._attachConnector == null ||
+ this._launchConnector == null ||
+ getConfig().endDebugWhenNoRequests)
) {
if (this._launchedScriptProcessPromise != null) {
await this._launchedScriptProcessPromise;
diff --git a/pkg/nuclide-debugger-php-rpc/lib/ConnectionUtils.js b/pkg/nuclide-debugger-php-rpc/lib/ConnectionUtils.js
index 751042b..bbac76a 100644
--- a/pkg/nuclide-debugger-php-rpc/lib/ConnectionUtils.js
+++ b/pkg/nuclide-debugger-php-rpc/lib/ConnectionUtils.js
@@ -70,9 +70,9 @@ export function isCorrectConnection(
const init = message.init;
if (
!init.engine ||
- !init.engine ||
- !init.engine[0] ||
- init.engine[0]._.toLowerCase() !== 'xdebug'
+ !init.engine ||
+ !init.engine[0] ||
+ init.engine[0]._.toLowerCase() !== 'xdebug'
) {
logger.logError('Incorrect engine');
return false;
@@ -81,8 +81,8 @@ export function isCorrectConnection(
const attributes = init.$;
if (
attributes.xmlns !== 'urn:debugger_protocol_v1' ||
- attributes['xmlns:xdebug'] !== 'http://xdebug.org/dbgp/xdebug' ||
- attributes.language !== 'PHP'
+ attributes['xmlns:xdebug'] !== 'http://xdebug.org/dbgp/xdebug' ||
+ attributes.language !== 'PHP'
) {
logger.logError('Incorrect attributes');
return false;
diff --git a/pkg/nuclide-debugger-php-rpc/lib/DbgpConnector.js b/pkg/nuclide-debugger-php-rpc/lib/DbgpConnector.js
index fd55b2a..c3a35e0 100644
--- a/pkg/nuclide-debugger-php-rpc/lib/DbgpConnector.js
+++ b/pkg/nuclide-debugger-php-rpc/lib/DbgpConnector.js
@@ -78,8 +78,14 @@ export class DbgpConnector {
const server = net.createServer();
server.on('close', socket => logger.log('Closing port ' + this._port));
- server.listen(this._port, undefined, undefined, () => // Hostname. // Backlog -- the maximum length of the queue of pending connections.
- logger.log('Listening on port ' + this._port));
+ server.listen(
+ this._port,
+ undefined,
+ undefined,
+ () =>
+ // Hostname. // Backlog -- the maximum length of the queue of pending connections.
+ logger.log('Listening on port ' + this._port),
+ );
server.on('error', error => this._onServerError(error));
server.on('connection', socket => this._onSocketConnection(socket));
diff --git a/pkg/nuclide-debugger-php-rpc/lib/DbgpSocket.js b/pkg/nuclide-debugger-php-rpc/lib/DbgpSocket.js
index 3b23daf..8fd958a 100644
--- a/pkg/nuclide-debugger-php-rpc/lib/DbgpSocket.js
+++ b/pkg/nuclide-debugger-php-rpc/lib/DbgpSocket.js
@@ -552,9 +552,9 @@ export class DbgpSocket {
);
if (
response.error != null ||
- response.breakpoint == null ||
- response.breakpoint[0] == null ||
- response.breakpoint[0].$ == null
+ response.breakpoint == null ||
+ response.breakpoint[0] == null ||
+ response.breakpoint[0].$ == null
) {
throw new Error('Error getting breakpoint: ' + JSON.stringify(response));
}
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/Runtime.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/Runtime.js
index 73d024a..1dff4e6 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/Runtime.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/Runtime.js
@@ -97,8 +97,8 @@ function normalizePath(path) {
if (path[0] === '/' && normalizedPath) normalizedPath = '/' + normalizedPath;
if (
path[path.length - 1] === '/' ||
- segments[segments.length - 1] === '.' ||
- segments[segments.length - 1] === '..'
+ segments[segments.length - 1] === '.' ||
+ segments[segments.length - 1] === '..'
)
normalizedPath = normalizedPath + '/';
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/BreakpointManager.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/BreakpointManager.js
index 513e57e..68b9093 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/BreakpointManager.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/BreakpointManager.js
@@ -190,7 +190,7 @@ WebInspector.BreakpointManager.prototype = {
this._restoreBreakpoints(uiSourceCode);
if (
uiSourceCode.contentType() === WebInspector.resourceTypes.Script ||
- uiSourceCode.contentType() === WebInspector.resourceTypes.Document
+ uiSourceCode.contentType() === WebInspector.resourceTypes.Document
)
uiSourceCode.addEventListener(
WebInspector.UISourceCode.Events.SourceMappingChanged,
@@ -664,7 +664,7 @@ WebInspector.BreakpointManager.Breakpoint.prototype = {
_removeUILocation: function(uiLocation, muteCreationFakeBreakpoint) {
if (
!uiLocation ||
- --this._numberOfDebuggerLocationForUILocation[uiLocation.id()] !== 0
+ --this._numberOfDebuggerLocationForUILocation[uiLocation.id()] !== 0
)
return;
@@ -749,8 +749,8 @@ WebInspector.BreakpointManager.Breakpoint.prototype = {
_fakeBreakpointAtPrimaryLocation: function() {
if (
this._isRemoved ||
- !Object.isEmpty(this._numberOfDebuggerLocationForUILocation) ||
- this._fakePrimaryLocation
+ !Object.isEmpty(this._numberOfDebuggerLocationForUILocation) ||
+ this._fakePrimaryLocation
)
return;
@@ -897,8 +897,8 @@ WebInspector.BreakpointManager.TargetBreakpoint.prototype = {
var newState;
if (
this._breakpoint._isRemoved ||
- !this._breakpoint.enabled() ||
- this._scriptDiverged()
+ !this._breakpoint.enabled() ||
+ this._scriptDiverged()
)
newState = null;
else if (debuggerLocation) {
@@ -943,10 +943,10 @@ WebInspector.BreakpointManager.TargetBreakpoint.prototype = {
}
if (
this._debuggerId &&
- WebInspector.BreakpointManager.Breakpoint.State.equals(
- newState,
- this._currentState,
- )
+ WebInspector.BreakpointManager.Breakpoint.State.equals(
+ newState,
+ this._currentState,
+ )
) {
callback();
return;
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/CompilerScriptMapping.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/CompilerScriptMapping.js
index 205fe4b..d6db103 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/CompilerScriptMapping.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/CompilerScriptMapping.js
@@ -235,7 +235,7 @@ WebInspector.CompilerScriptMapping.prototype = {
this._sourceMapForURL.set(sourceURL, sourceMap);
if (
!this._networkMapping.hasMappingForURL(sourceURL) &&
- !this._networkMapping.uiSourceCodeForURL(sourceURL, script.target())
+ !this._networkMapping.uiSourceCodeForURL(sourceURL, script.target())
) {
var contentProvider = sourceMap.sourceContentProvider(
sourceURL,
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/Linkifier.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/Linkifier.js
index 72178a0..dee5aaf 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/Linkifier.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/Linkifier.js
@@ -109,7 +109,7 @@ WebInspector.Linkifier.linkifyUsingRevealer = function(
event.preventDefault();
if (
fallbackHref &&
- WebInspector.Linkifier.handleLink(fallbackHref, fallbackLineNumber)
+ WebInspector.Linkifier.handleLink(fallbackHref, fallbackLineNumber)
)
return;
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/NetworkProject.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/NetworkProject.js
index 33bd964..262c913 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/NetworkProject.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/NetworkProject.js
@@ -384,8 +384,8 @@ WebInspector.NetworkProject.prototype = {
var type = contentProvider.contentType();
if (
type !== WebInspector.resourceTypes.Stylesheet &&
- type !== WebInspector.resourceTypes.Document &&
- type !== WebInspector.resourceTypes.Script
+ type !== WebInspector.resourceTypes.Document &&
+ type !== WebInspector.resourceTypes.Script
)
return;
if (this._processedURLs[url]) return;
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/PresentationConsoleMessageHelper.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/PresentationConsoleMessageHelper.js
index abcd877..0845d14 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/PresentationConsoleMessageHelper.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/PresentationConsoleMessageHelper.js
@@ -249,7 +249,7 @@ WebInspector.PresentationConsoleMessageHelper.prototype = {
var rawLocation = this._rawLocation(message);
if (
script.target() === message.target() &&
- script.scriptId === rawLocation.scriptId
+ script.scriptId === rawLocation.scriptId
)
this._addConsoleMessageToScript(message, rawLocation);
else
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/ResourceScriptMapping.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/ResourceScriptMapping.js
index 745d3ab..e18b5ae 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/ResourceScriptMapping.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/ResourceScriptMapping.js
@@ -84,8 +84,8 @@ WebInspector.ResourceScriptMapping.prototype = {
var scriptFile = this.scriptFile(uiSourceCode);
if (
scriptFile &&
- (scriptFile.hasDivergedFromVM() && !scriptFile.isMergingToVM() ||
- scriptFile.isDivergingFromVM())
+ (scriptFile.hasDivergedFromVM() && !scriptFile.isMergingToVM() ||
+ scriptFile.isDivergingFromVM())
)
return null;
var lineNumber = debuggerModelLocation.lineNumber -
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/ResourceUtils.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/ResourceUtils.js
index 41a6c6e..e57bfa8 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/ResourceUtils.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/ResourceUtils.js
@@ -74,8 +74,8 @@ WebInspector.displayNameForURL = function(url) {
.indexOf(lastPathComponent);
if (
index !== -1 &&
- index + lastPathComponent.length ===
- WebInspector.targetManager.inspectedPageURL().length
+ index + lastPathComponent.length ===
+ WebInspector.targetManager.inspectedPageURL().length
) {
var baseURL = WebInspector.targetManager
.inspectedPageURL()
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/SASSSourceMapping.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/SASSSourceMapping.js
index a732b3d..2247225 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/SASSSourceMapping.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/SASSSourceMapping.js
@@ -452,8 +452,8 @@ WebInspector.SASSSourceMapping.prototype = {
addHeader: function(header) {
if (
!header.sourceMapURL ||
- !header.sourceURL ||
- !WebInspector.settings.cssSourceMapsEnabled.get()
+ !header.sourceURL ||
+ !WebInspector.settings.cssSourceMapsEnabled.get()
)
return;
var completeSourceMapURL = WebInspector.ParsedURL.completeURL(
@@ -477,8 +477,8 @@ WebInspector.SASSSourceMapping.prototype = {
var sourceURL = header.sourceURL;
if (
!sourceURL ||
- !header.sourceMapURL ||
- !this._completeSourceMapURLForCSSURL[sourceURL]
+ !header.sourceMapURL ||
+ !this._completeSourceMapURLForCSSURL[sourceURL]
)
return;
delete this._sourceMapByStyleSheetURL[sourceURL];
@@ -612,7 +612,7 @@ WebInspector.SASSSourceMapping.prototype = {
this._addCSSURLforSASSURL(rawURL, url);
if (
!this._networkMapping.hasMappingForURL(url) &&
- !this._networkMapping.uiSourceCodeForURL(url, header.target())
+ !this._networkMapping.uiSourceCodeForURL(url, header.target())
) {
var contentProvider = sourceMap.sourceContentProvider(
url,
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/clike.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/clike.js
index 9c4b028..a3889fd 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/clike.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/clike.js
@@ -154,7 +154,7 @@
if (
(curPunc == ';' || curPunc == ':' || curPunc == ',') &&
- ctx.type == 'statement'
+ ctx.type == 'statement'
)
popContext(state);
else if (curPunc == '{')
@@ -172,7 +172,7 @@
} else if (curPunc == ctx.type) popContext(state);
else if (
(ctx.type == '}' || ctx.type == 'top') && curPunc != ';' ||
- ctx.type == 'statement' && curPunc == 'newstatement'
+ ctx.type == 'statement' && curPunc == 'newstatement'
)
pushContext(state, stream.column(), 'statement');
state.startOfLine = false;
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/closebrackets.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/closebrackets.js
index 53153df..c513ab1 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/closebrackets.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/closebrackets.js
@@ -76,29 +76,29 @@
else if (left == right && next == right) {
if (
cm.getRange(cur, Pos(cur.line, cur.ch + 3)) ==
- left + left + left
+ left + left + left
)
curType = 'skipThree';
else
curType = 'skip';
} else if (
left == right &&
- cur.ch > 1 &&
- cm.getRange(Pos(cur.line, cur.ch - 2), cur) == left + left &&
- (cur.ch <= 2 ||
- cm.getRange(
- Pos(cur.line, cur.ch - 3),
- Pos(cur.line, cur.ch - 2),
- ) !=
- left)
+ cur.ch > 1 &&
+ cm.getRange(Pos(cur.line, cur.ch - 2), cur) == left + left &&
+ (cur.ch <= 2 ||
+ cm.getRange(
+ Pos(cur.line, cur.ch - 3),
+ Pos(cur.line, cur.ch - 2),
+ ) !=
+ left)
)
curType = 'addFour';
else if (left == right && CodeMirror.isWordChar(next))
return CodeMirror.Pass;
else if (
cm.getLine(cur.line).length == cur.ch ||
- closingBrackets.indexOf(next) >= 0 ||
- SPACE_CHAR_REGEX.test(next)
+ closingBrackets.indexOf(next) >= 0 ||
+ SPACE_CHAR_REGEX.test(next)
)
curType = 'both';
else
@@ -134,11 +134,11 @@
var range = ranges[i];
if (
!range.empty() ||
- cm.getRange(
- range.head,
- Pos(range.head.line, range.head.ch + 1),
- ) !=
- right
+ cm.getRange(
+ range.head,
+ Pos(range.head.line, range.head.ch + 1),
+ ) !=
+ right
)
return CodeMirror.Pass;
}
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/codemirror.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/codemirror.js
index 07c0a02..76457da 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/codemirror.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/codemirror.js
@@ -134,8 +134,8 @@
// measuring on line wrapping boundaries.
if (
webkit &&
- options.lineWrapping &&
- getComputedStyle(display.lineDiv).textRendering == 'optimizelegibility'
+ options.lineWrapping &&
+ getComputedStyle(display.lineDiv).textRendering == 'optimizelegibility'
)
display.lineDiv.style.textRendering = 'auto';
}
@@ -644,7 +644,7 @@
for (
var i = 0;
i < 4 && startWidth != cm.display.barWidth ||
- startHeight != cm.display.barHeight;
+ startHeight != cm.display.barHeight;
i++
) {
if (startWidth != cm.display.barWidth && cm.options.lineWrapping)
@@ -672,8 +672,8 @@
d.scrollbarFiller.style.display = '';
if (
sizes.bottom &&
- cm.options.coverGutterNextToScrollbar &&
- cm.options.fixedGutter
+ cm.options.coverGutterNextToScrollbar &&
+ cm.options.fixedGutter
) {
d.gutterFiller.style.display = 'block';
d.gutterFiller.style.height = sizes.bottom + 'px';
@@ -725,7 +725,7 @@
var display = cm.display, view = display.view;
if (
!display.alignWidgets &&
- (!display.gutters.firstChild || !cm.options.fixedGutter)
+ (!display.gutters.firstChild || !cm.options.fixedGutter)
)
return;
var comp = compensateForHScroll(display) -
@@ -830,12 +830,12 @@
// Bail out if the visible area is already rendered and nothing changed.
if (
!update.force &&
- update.visible.from >= display.viewFrom &&
- update.visible.to <= display.viewTo &&
- (display.updateLineNumbers == null ||
- display.updateLineNumbers >= display.viewTo) &&
- display.renderedView == display.view &&
- countDirtyView(cm) == 0
+ update.visible.from >= display.viewFrom &&
+ update.visible.to <= display.viewTo &&
+ (display.updateLineNumbers == null ||
+ display.updateLineNumbers >= display.viewTo) &&
+ display.renderedView == display.view &&
+ countDirtyView(cm) == 0
)
return false;
@@ -873,11 +873,11 @@
var toUpdate = countDirtyView(cm);
if (
!different &&
- toUpdate == 0 &&
- !update.force &&
- display.renderedView == display.view &&
- (display.updateLineNumbers == null ||
- display.updateLineNumbers >= display.viewTo)
+ toUpdate == 0 &&
+ !update.force &&
+ display.renderedView == display.view &&
+ (display.updateLineNumbers == null ||
+ display.updateLineNumbers >= display.viewTo)
)
return false;
@@ -915,8 +915,8 @@
for (var first = true; ; first = false) {
if (
first &&
- cm.options.lineWrapping &&
- update.oldDisplayWidth != displayWidth(cm)
+ cm.options.lineWrapping &&
+ update.oldDisplayWidth != displayWidth(cm)
) {
force = true;
} else {
@@ -934,7 +934,7 @@
update.visible = visibleLines(cm.display, cm.doc, viewport);
if (
update.visible.from >= cm.display.viewFrom &&
- update.visible.to <= cm.display.viewTo
+ update.visible.to <= cm.display.viewTo
)
break;
}
@@ -949,7 +949,7 @@
signalLater(cm, 'update', cm);
if (
cm.display.viewFrom != cm.display.reportedViewFrom ||
- cm.display.viewTo != cm.display.reportedViewTo
+ cm.display.viewTo != cm.display.reportedViewTo
) {
signalLater(
cm,
@@ -1209,7 +1209,7 @@
gutterWrap.className += ' ' + lineView.line.gutterClass;
if (
cm.options.lineNumbers &&
- (!markers || !markers['CodeMirror-linenumbers'])
+ (!markers || !markers['CodeMirror-linenumbers'])
)
lineView.lineNumber = gutterWrap.appendChild(
elt(
@@ -1357,7 +1357,7 @@
if (other == this) return true;
if (
other.primIndex != this.primIndex ||
- other.ranges.length != this.ranges.length
+ other.ranges.length != this.ranges.length
)
return false;
for (var i = 0; i < this.ranges.length; i++) {
@@ -1577,7 +1577,7 @@
function setSelectionNoUndo(doc, sel, options) {
if (
hasHandler(doc, 'beforeSelectionChange') ||
- doc.cm && hasHandler(doc.cm, 'beforeSelectionChange')
+ doc.cm && hasHandler(doc.cm, 'beforeSelectionChange')
)
sel = filterSelectionChange(doc, sel);
@@ -1641,8 +1641,8 @@
if (
(sp.from == null ||
(m.inclusiveLeft ? sp.from <= curPos.ch : sp.from < curPos.ch)) &&
- (sp.to == null ||
- (m.inclusiveRight ? sp.to >= curPos.ch : sp.to > curPos.ch))
+ (sp.to == null ||
+ (m.inclusiveRight ? sp.to >= curPos.ch : sp.to > curPos.ch))
) {
if (mayClear) {
signal(m, 'beforeCursorEnter');
@@ -1848,14 +1848,14 @@
if (toArg == null && to == lineLen) right = rightSide;
if (
!start ||
- leftPos.top < start.top ||
- leftPos.top == start.top && leftPos.left < start.left
+ leftPos.top < start.top ||
+ leftPos.top == start.top && leftPos.left < start.left
)
start = leftPos;
if (
!end ||
- rightPos.bottom > end.bottom ||
- rightPos.bottom == end.bottom && rightPos.right > end.right
+ rightPos.bottom > end.bottom ||
+ rightPos.bottom == end.bottom && rightPos.right > end.right
)
end = rightPos;
if (left < leftSide + 1) left = leftSide;
@@ -2066,7 +2066,7 @@
var curWidth = wrapping && displayWidth(cm);
if (
!lineView.measure.heights ||
- wrapping && lineView.measure.width != curWidth
+ wrapping && lineView.measure.width != curWidth
) {
var heights = lineView.measure.heights = [];
if (wrapping) {
@@ -2211,8 +2211,8 @@
if (bias == 'right' && start == mEnd - mStart)
while (
i < map.length - 3 &&
- map[i + 3] == map[i + 4] &&
- !map[i + 5].insertLeft
+ map[i + 3] == map[i + 4] &&
+ !map[i + 5].insertLeft
) {
node = map[(i += 3) + 2];
collapse = 'right';
@@ -2232,7 +2232,7 @@
--start;
while (
mStart + end < mEnd &&
- isExtendingChar(prepared.line.text.charAt(mStart + end))
+ isExtendingChar(prepared.line.text.charAt(mStart + end))
)
++end;
if (ie && ie_version < 9 && start == 0 && end == mEnd - mStart) {
@@ -2303,9 +2303,9 @@
function maybeUpdateRectForZooming(measure, rect) {
if (
!window.screen ||
- screen.logicalXDPI == null ||
- screen.logicalXDPI == screen.deviceXDPI ||
- !hasBadZoomedRects(measure)
+ screen.logicalXDPI == null ||
+ screen.logicalXDPI == screen.deviceXDPI ||
+ !hasBadZoomedRects(measure)
)
return rect;
var scaleX = screen.logicalXDPI / screen.deviceXDPI;
@@ -2440,8 +2440,8 @@
right = true;
} else if (
ch == bidiRight(part) &&
- partPos < order.length - 1 &&
- part.level < order[partPos + 1].level
+ partPos < order.length - 1 &&
+ part.level < order[partPos + 1].level
) {
part = order[++partPos];
ch = bidiLeft(part) - part.level % 2;
@@ -2504,8 +2504,8 @@
var mergedPos = merged && merged.find(0, true);
if (
merged &&
- (found.ch > mergedPos.from.ch ||
- found.ch == mergedPos.from.ch && found.xRel > 0)
+ (found.ch > mergedPos.from.ch ||
+ found.ch == mergedPos.from.ch && found.xRel > 0)
)
lineN = lineNo(lineObj = mergedPos.to.line);
else
@@ -2807,14 +2807,14 @@
// Abort mouse wheel delta measurement, when scrolling explicitly
if (
display.wheelStartX != null &&
- (op.scrollTop != null || op.scrollLeft != null || op.scrollToPos)
+ (op.scrollTop != null || op.scrollLeft != null || op.scrollToPos)
)
display.wheelStartX = display.wheelStartY = null;
// Propagate the scroll position to the actual DOM scroller
if (
op.scrollTop != null &&
- (display.scroller.scrollTop != op.scrollTop || op.forceScroll)
+ (display.scroller.scrollTop != op.scrollTop || op.forceScroll)
) {
doc.scrollTop = Math.max(
0,
@@ -2828,7 +2828,7 @@
}
if (
op.scrollLeft != null &&
- (display.scroller.scrollLeft != op.scrollLeft || op.forceScroll)
+ (display.scroller.scrollLeft != op.scrollLeft || op.forceScroll)
) {
doc.scrollLeft = Math.max(
0,
@@ -2959,8 +2959,8 @@
var display = cm.display;
if (
lendiff &&
- to < display.viewTo &&
- (display.updateLineNumbers == null || display.updateLineNumbers > from)
+ to < display.viewTo &&
+ (display.updateLineNumbers == null || display.updateLineNumbers > from)
)
display.updateLineNumbers = from;
@@ -2974,7 +2974,7 @@
// Change before
if (
sawCollapsedSpans &&
- visualLineEndNo(cm.doc, to + lendiff) > display.viewFrom
+ visualLineEndNo(cm.doc, to + lendiff) > display.viewFrom
) {
resetView(cm);
} else {
@@ -3172,10 +3172,10 @@
// in which case reading its value would be expensive.
if (
!cm.state.focused ||
- hasSelection(input) && !prevInput ||
- isReadOnly(cm) ||
- cm.options.disableInput ||
- cm.state.keySeq
+ hasSelection(input) && !prevInput ||
+ isReadOnly(cm) ||
+ cm.options.disableInput ||
+ cm.state.keySeq
)
return false;
// See paste handler for more on the fakedLastChar kludge
@@ -3191,7 +3191,7 @@
// some key combos in Mac (#2689).
if (
ie && ie_version >= 9 && cm.display.inputHasSelection === text ||
- mac && /[\uf700-\uf7ff]/.test(text)
+ mac && /[\uf700-\uf7ff]/.test(text)
) {
resetInput(cm);
return false;
@@ -3203,8 +3203,8 @@
if (
text.charCodeAt(0) == 0x200b &&
- doc.sel == cm.display.selForContextMenu &&
- !prevInput
+ doc.sel == cm.display.selForContextMenu &&
+ !prevInput
)
prevInput = '\u200b';
// Find the part of the input that is actually new
@@ -3258,11 +3258,11 @@
// When an 'electric' character is inserted, immediately trigger a reindent
if (
inserted &&
- !cm.state.pasteIncoming &&
- cm.options.electricChars &&
- cm.options.smartIndent &&
- range.head.ch < 100 &&
- (!i || doc.sel.ranges[i - 1].head.line != range.head.line)
+ !cm.state.pasteIncoming &&
+ cm.options.electricChars &&
+ cm.options.smartIndent &&
+ range.head.ch < 100 &&
+ (!i || doc.sel.ranges[i - 1].head.line != range.head.line)
) {
var mode = cm.getModeAt(range.head);
var end = changeEnd(changeEvent);
@@ -3321,7 +3321,7 @@
function focusInput(cm) {
if (
cm.options.readOnly != 'nocursor' &&
- (!mobile || activeElt() != cm.display.input)
+ (!mobile || activeElt() != cm.display.input)
)
cm.display.input.focus();
}
@@ -3433,8 +3433,8 @@
// selection doesn't span to the end of textarea.
if (
webkit &&
- !cm.state.fakedLastChar &&
- !(new Date() - cm.state.lastMiddleDown < 200)
+ !cm.state.fakedLastChar &&
+ !(new Date() - cm.state.lastMiddleDown < 200)
) {
var start = d.input.selectionStart, end = d.input.selectionEnd;
d.input.value += '$';
@@ -3494,7 +3494,7 @@
var d = cm.display;
if (
d.lastWrapHeight == d.wrapper.clientHeight &&
- d.lastWrapWidth == d.wrapper.clientWidth
+ d.lastWrapWidth == d.wrapper.clientWidth
)
return;
// Might be a text scaling operation, clear size caches.
@@ -3510,8 +3510,8 @@
for (var n = e_target(e); n != display.wrapper; n = n.parentNode) {
if (
!n ||
- n.nodeType == 1 && n.getAttribute('cm-ignore-events') == 'true' ||
- n.parentNode == display.sizer && n != display.mover
+ n.nodeType == 1 && n.getAttribute('cm-ignore-events') == 'true' ||
+ n.parentNode == display.sizer && n != display.mover
)
return true;
}
@@ -3538,8 +3538,8 @@
var coords = coordsChar(cm, x, y), line;
if (
forRect &&
- coords.xRel == 1 &&
- (line = getLine(cm.doc, coords.line).text).length == coords.ch
+ coords.xRel == 1 &&
+ (line = getLine(cm.doc, coords.line).text).length == coords.ch
) {
var colDiff = countColumn(line, line.length, cm.options.tabSize) -
line.length;
@@ -3607,8 +3607,8 @@
var now = +new Date(), type;
if (
lastDoubleClick &&
- lastDoubleClick.time > now - 400 &&
- cmp(lastDoubleClick.pos, start) == 0
+ lastDoubleClick.time > now - 400 &&
+ cmp(lastDoubleClick.pos, start) == 0
) {
type = 'triple';
} else if (
@@ -3624,11 +3624,11 @@
var sel = cm.doc.sel, modifier = mac ? e.metaKey : e.ctrlKey, contained;
if (
cm.options.dragDrop &&
- dragAndDrop &&
- !isReadOnly(cm) &&
- type == 'single' &&
- (contained = sel.contains(start)) > -1 &&
- !sel.ranges[contained].empty()
+ dragAndDrop &&
+ !isReadOnly(cm) &&
+ type == 'single' &&
+ (contained = sel.contains(start)) > -1 &&
+ !sel.ranges[contained].empty()
)
leftButtonStartDrag(cm, e, start, modifier);
else
@@ -4271,7 +4271,7 @@
// Turn mouse into crosshair when Alt is held on Mac.
if (
code == 18 &&
- !/\bCodeMirror-crosshair\b/.test(cm.display.lineDiv.className)
+ !/\bCodeMirror-crosshair\b/.test(cm.display.lineDiv.className)
)
showCrossHair(cm);
}
@@ -4419,7 +4419,7 @@
poll = function() {
if (
display.selForContextMenu == cm.doc.sel &&
- display.input.selectionStart == 0
+ display.input.selectionStart == 0
)
operation(cm, commands.selectAll)(cm);
else if (i++ < 10)
@@ -4551,7 +4551,7 @@
if (
hasHandler(doc, 'beforeChange') ||
- doc.cm && hasHandler(doc.cm, 'beforeChange')
+ doc.cm && hasHandler(doc.cm, 'beforeChange')
) {
change = filterChange(doc, change, true);
if (!change) return;
@@ -4577,8 +4577,8 @@
function makeChangeInner(doc, change) {
if (
change.text.length == 1 &&
- change.text[0] == '' &&
- cmp(change.from, change.to) == 0
+ change.text[0] == '' &&
+ cmp(change.from, change.to) == 0
)
return;
var selAfter = computeSelAfterChange(doc, change);
@@ -4790,8 +4790,8 @@
if (change.full) regChange(cm);
else if (
from.line == to.line &&
- change.text.length == 1 &&
- !isWholeLineUpdate(cm.doc, change)
+ change.text.length == 1 &&
+ !isWholeLineUpdate(cm.doc, change)
)
regLineChange(cm, from.line, 'text');
else
@@ -4838,7 +4838,7 @@
if (coords.top + box.top < 0) doScroll = true;
else if (
coords.bottom + box.top >
- (window.innerHeight || document.documentElement.clientHeight)
+ (window.innerHeight || document.documentElement.clientHeight)
)
doScroll = false;
if (doScroll != null && !phantom) {
@@ -5286,8 +5286,8 @@
var newRanges = this.doc.sel.ranges;
if (
from.ch == 0 &&
- ranges.length == newRanges.length &&
- newRanges[i].from().ch > 0
+ ranges.length == newRanges.length &&
+ newRanges[i].from().ch > 0
)
replaceOneSelection(
this.doc,
@@ -5480,7 +5480,7 @@
// Default to positioning above (if specified and possible); otherwise default to positioning below
if (
(vert == 'above' || pos.bottom + node.offsetHeight > vspace) &&
- pos.top > node.offsetHeight
+ pos.top > node.offsetHeight
)
top = pos.top - node.offsetHeight;
else if (pos.bottom + node.offsetHeight <= vspace) top = pos.bottom;
@@ -5713,7 +5713,7 @@
updateGutterSpace(this);
if (
oldHeight == null ||
- Math.abs(oldHeight - textHeight(this.display)) > 0.5
+ Math.abs(oldHeight - textHeight(this.display)) > 0.5
)
estimateLineHeights(this);
signal(this, 'refresh', this);
@@ -5983,8 +5983,8 @@
spec = mimeModes[spec];
} else if (
spec &&
- typeof spec.name == 'string' &&
- mimeModes.hasOwnProperty(spec.name)
+ typeof spec.name == 'string' &&
+ mimeModes.hasOwnProperty(spec.name)
) {
var found = mimeModes[spec.name];
if (typeof found == 'string') found = {name: found};
@@ -6791,9 +6791,9 @@
line.markedSpans = removeMarkedSpan(line.markedSpans, span);
if (
span.from == null &&
- this.collapsed &&
- !lineIsHidden(this.doc, line) &&
- cm
+ this.collapsed &&
+ !lineIsHidden(this.doc, line) &&
+ cm
)
updateLineHeight(line, textHeight(cm.display));
}
@@ -6915,8 +6915,8 @@
if (marker.collapsed) {
if (
conflictingCollapsedRange(doc, from.line, from, to, marker) ||
- from.line != to.line &&
- conflictingCollapsedRange(doc, to.line, from, to, marker)
+ from.line != to.line &&
+ conflictingCollapsedRange(doc, to.line, from, to, marker)
)
throw new Error(
'Inserting collapsed marker partially overlapping an existing one',
@@ -6936,9 +6936,9 @@
doc.iter(curLine, to.line + 1, function(line) {
if (
cm &&
- marker.collapsed &&
- !cm.options.lineWrapping &&
- visualLine(line) == cm.display.maxLine
+ marker.collapsed &&
+ !cm.options.lineWrapping &&
+ visualLine(line) == cm.display.maxLine
)
updateMaxLine = true;
if (marker.collapsed && curLine != from.line) updateLineHeight(line, 0);
@@ -6975,10 +6975,10 @@
if (marker.collapsed) regChange(cm, from.line, to.line + 1);
else if (
marker.className ||
- marker.title ||
- marker.startStyle ||
- marker.endStyle ||
- marker.css
+ marker.title ||
+ marker.startStyle ||
+ marker.endStyle ||
+ marker.css
)
for (var i = from.line; i <= to.line; i++)
regLineChange(cm, i, 'text');
@@ -7126,9 +7126,9 @@
(marker.inclusiveLeft ? span.from <= startCh : span.from < startCh);
if (
startsBefore ||
- span.from == startCh &&
- marker.type == 'bookmark' &&
- (!isInsert || !span.marker.insertLeft)
+ span.from == startCh &&
+ marker.type == 'bookmark' &&
+ (!isInsert || !span.marker.insertLeft)
) {
var endsAfter = span.to == null ||
(marker.inclusiveRight ? span.to >= startCh : span.to > startCh);
@@ -7149,9 +7149,9 @@
(marker.inclusiveRight ? span.to >= endCh : span.to > endCh);
if (
endsAfter ||
- span.from == endCh &&
- marker.type == 'bookmark' &&
- (!isInsert || span.marker.insertLeft)
+ span.from == endCh &&
+ marker.type == 'bookmark' &&
+ (!isInsert || span.marker.insertLeft)
) {
var startsBefore = span.from == null ||
(marker.inclusiveLeft ? span.from <= endCh : span.from < endCh);
@@ -7248,8 +7248,8 @@
var span = spans[i];
if (
span.from != null &&
- span.from == span.to &&
- span.marker.clearWhenEmpty !== false
+ span.from == span.to &&
+ span.marker.clearWhenEmpty !== false
)
spans.splice((i--), 1);
}
@@ -7361,8 +7361,8 @@
sp = sps[i];
if (
sp.marker.collapsed &&
- (start ? sp.from : sp.to) == null &&
- (!found || compareCollapsedMarkers(found, sp.marker) < 0)
+ (start ? sp.from : sp.to) == null &&
+ (!found || compareCollapsedMarkers(found, sp.marker) < 0)
)
found = sp.marker;
}
@@ -7395,9 +7395,9 @@
fromCmp <= 0 &&
(cmp(found.to, from) > 0 ||
sp.marker.inclusiveRight && marker.inclusiveLeft) ||
- fromCmp >= 0 &&
- (cmp(found.from, to) < 0 ||
- sp.marker.inclusiveLeft && marker.inclusiveRight)
+ fromCmp >= 0 &&
+ (cmp(found.from, to) < 0 ||
+ sp.marker.inclusiveLeft && marker.inclusiveRight)
)
return true;
}
@@ -7456,8 +7456,8 @@
if (sp.marker.widgetNode) continue;
if (
sp.from == 0 &&
- sp.marker.inclusiveLeft &&
- lineIsHiddenInner(doc, line, sp)
+ sp.marker.inclusiveLeft &&
+ lineIsHiddenInner(doc, line, sp)
)
return true;
}
@@ -7476,11 +7476,11 @@
sp = line.markedSpans[i];
if (
sp.marker.collapsed &&
- !sp.marker.widgetNode &&
- sp.from == span.to &&
- (sp.to == null || sp.to != span.from) &&
- (sp.marker.inclusiveLeft || span.marker.inclusiveRight) &&
- lineIsHiddenInner(doc, line, sp)
+ !sp.marker.widgetNode &&
+ sp.from == span.to &&
+ (sp.to == null || sp.to != span.from) &&
+ (sp.marker.inclusiveLeft || span.marker.inclusiveRight) &&
+ lineIsHiddenInner(doc, line, sp)
)
return true;
}
@@ -8065,7 +8065,7 @@
if (m.title && !title) title = m.title;
if (
m.collapsed &&
- (!collapsed || compareCollapsedMarkers(collapsed.marker, m) < 0)
+ (!collapsed || compareCollapsedMarkers(collapsed.marker, m) < 0)
)
collapsed = sp;
} else if (sp.from > pos && nextChange > sp.from) {
@@ -8309,7 +8309,7 @@
// single leaf node.
if (
this.size - n < 25 &&
- (this.children.length > 1 || !(this.children[0] instanceof LeafChunk))
+ (this.children.length > 1 || !(this.children[0] instanceof LeafChunk))
) {
var lines = [];
this.collapse(lines);
@@ -8723,7 +8723,7 @@
var span = spans[i];
if (
(span.from == null || span.from <= pos.ch) &&
- (span.to == null || span.to >= pos.ch)
+ (span.to == null || span.to >= pos.ch)
)
markers.push(span.marker.parent || span.marker);
}
@@ -8742,7 +8742,7 @@
!(lineNo == from.line && from.ch > span.to ||
span.from == null && lineNo != from.line ||
lineNo == to.line && span.from > to.ch) &&
- (!filter || filter(span.marker))
+ (!filter || filter(span.marker))
)
found.push(span.marker.parent || span.marker);
}
@@ -9098,7 +9098,7 @@
doc.cm &&
hist.lastModTime > time - doc.cm.options.historyEventDelay ||
change.origin.charAt(0) == '*')) &&
- (cur = lastChangeEvent(hist, hist.lastOp == opId))
+ (cur = lastChangeEvent(hist, hist.lastOp == opId))
) {
// Merge this change into the last event
var last = lst(cur.changes);
@@ -9156,10 +9156,10 @@
// merged when similar and close together in time.
if (
opId == hist.lastSelOp ||
- origin &&
- hist.lastSelOrigin == origin &&
- (hist.lastModTime == hist.lastSelTime && hist.lastOrigin == origin ||
- selectionEventCanBeMerged(doc, origin, lst(hist.done), sel))
+ origin &&
+ hist.lastSelOrigin == origin &&
+ (hist.lastModTime == hist.lastSelTime && hist.lastOrigin == origin ||
+ selectionEventCanBeMerged(doc, origin, lst(hist.done), sel))
)
hist.done[hist.done.length - 1] = sel;
else
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/coffeescript.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/coffeescript.js
index 35beaaa..733b40b 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/coffeescript.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/coffeescript.js
@@ -331,7 +331,7 @@
(current === '->' || current === '=>') &&
!state.lambda &&
!stream.peek() ||
- style === 'indent'
+ style === 'indent'
) {
indent(stream, state);
}
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/comment.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/comment.js
index 6bd5418..c3e3a82 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/comment.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/comment.js
@@ -180,9 +180,9 @@
}
if (
open == -1 ||
- close == -1 ||
- !/comment/.test(self.getTokenTypeAt(Pos(start, open + 1))) ||
- !/comment/.test(self.getTokenTypeAt(Pos(end, close + 1)))
+ close == -1 ||
+ !/comment/.test(self.getTokenTypeAt(Pos(start, open + 1))) ||
+ !/comment/.test(self.getTokenTypeAt(Pos(end, close + 1)))
)
return false;
@@ -196,8 +196,8 @@
.indexOf(endString, lastStart + startString.length);
if (
lastStart != -1 &&
- firstEnd != -1 &&
- firstEnd + endString.length != from.ch
+ firstEnd != -1 &&
+ firstEnd + endString.length != from.ch
)
return false;
// Positions of the first endString after the end of the selection, and the last startString before it.
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/css.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/css.js
index 886b00a..fdbf3da 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/css.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/css.js
@@ -219,7 +219,7 @@
if (
type == 'hash' &&
- !/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(stream.current())
+ !/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(stream.current())
) {
override += ' error';
} else if (type == 'word') {
@@ -345,13 +345,13 @@
if (cx.type == 'prop' && (ch == '}' || ch == ')')) cx = cx.prev;
if (
cx.prev &&
- (ch == '}' &&
- (cx.type == 'block' ||
- cx.type == 'top' ||
- cx.type == 'interpolation' ||
- cx.type == 'font_face') ||
- ch == ')' && (cx.type == 'parens' || cx.type == 'media_parens') ||
- ch == '{' && (cx.type == 'at' || cx.type == 'media'))
+ (ch == '}' &&
+ (cx.type == 'block' ||
+ cx.type == 'top' ||
+ cx.type == 'interpolation' ||
+ cx.type == 'font_face') ||
+ ch == ')' && (cx.type == 'parens' || cx.type == 'media_parens') ||
+ ch == '{' && (cx.type == 'at' || cx.type == 'media'))
) {
indent = cx.indent - indentUnit;
cx = cx.prev;
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/headlesscodemirror.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/headlesscodemirror.js
index 4b8a7ed..1946f84 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/headlesscodemirror.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/headlesscodemirror.js
@@ -121,8 +121,8 @@
spec = mimeModes[spec];
} else if (
spec &&
- typeof spec.name == 'string' &&
- mimeModes.hasOwnProperty(spec.name)
+ typeof spec.name == 'string' &&
+ mimeModes.hasOwnProperty(spec.name)
) {
spec = mimeModes[spec.name];
}
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/htmlmixed.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/htmlmixed.js
index 503cf7d..254d037 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/htmlmixed.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/htmlmixed.js
@@ -64,8 +64,8 @@
var style = htmlMode.token(stream, state.htmlState);
if (
tagName == 'script' &&
- /\btag\b/.test(style) &&
- stream.current() == '>'
+ /\btag\b/.test(style) &&
+ stream.current() == '>'
) {
// Script block: mode to change to depends on type attribute
var scriptType = stream.string
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/javascript.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/javascript.js
index 1f77d40..3a83e9a 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/javascript.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/javascript.js
@@ -155,9 +155,9 @@
return ret('comment', 'comment');
} else if (
state.lastType == 'operator' ||
- state.lastType == 'keyword c' ||
- state.lastType == 'sof' ||
- /^[\[{}\(,;:]$/.test(state.lastType)
+ state.lastType == 'keyword c' ||
+ state.lastType == 'sof' ||
+ /^[\[{}\(,;:]$/.test(state.lastType)
) {
readRegexp(stream);
stream.eatWhile(/[gimy]/); // 'y' is "sticky" option in Mozilla
@@ -408,7 +408,7 @@
if (type == 'if') {
if (
cx.state.lexical.info == 'else' &&
- cx.state.cc[cx.state.cc.length - 1] == poplex
+ cx.state.cc[cx.state.cc.length - 1] == poplex
)
cx.state.cc.pop()();
return cont(pushlex('form'), expression, statement, poplex, maybeelse);
@@ -850,8 +850,8 @@
: 0);
else if (
lexical.info == 'switch' &&
- !closing &&
- parserConfig.doubleIndentSwitch != false
+ !closing &&
+ parserConfig.doubleIndentSwitch != false
)
return lexical.indented +
(/^(?:case|default)\b/.test(textAfter)
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/markselection.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/markselection.js
index 4a7d11e..6a154ad 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/markselection.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/markselection.js
@@ -100,10 +100,10 @@
var coverStart = array[0].find(), coverEnd = array[array.length - 1].find();
if (
!coverStart ||
- !coverEnd ||
- to.line - from.line < CHUNK_SIZE ||
- cmp(from, coverEnd.to) >= 0 ||
- cmp(to, coverStart.from) <= 0
+ !coverEnd ||
+ to.line - from.line < CHUNK_SIZE ||
+ cmp(from, coverEnd.to) >= 0 ||
+ cmp(to, coverStart.from) <= 0
)
return reset(cm);
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/matchbrackets.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/matchbrackets.js
index 9446ee9..10b0647 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/matchbrackets.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/matchbrackets.js
@@ -78,8 +78,8 @@
var ch = line.charAt(pos);
if (
re.test(ch) &&
- (style === undefined ||
- cm.getTokenTypeAt(Pos(lineNo, pos + 1)) == style)
+ (style === undefined ||
+ cm.getTokenTypeAt(Pos(lineNo, pos + 1)) == style)
) {
var match = matching[ch];
if (match.charAt(1) == '>' == dir > 0) stack.push(ch);
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/overlay.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/overlay.js
index 3456ff4..55671d5 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/overlay.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/overlay.js
@@ -50,8 +50,8 @@
token: function(stream, state) {
if (
stream.sol() ||
- stream.string != state.lineSeen ||
- Math.min(state.basePos, state.overlayPos) < stream.start
+ stream.string != state.lineSeen ||
+ Math.min(state.basePos, state.overlayPos) < stream.start
) {
state.lineSeen = stream.string;
state.basePos = state.overlayPos = stream.start;
@@ -73,7 +73,7 @@
if (state.overlayCur == null) return state.baseCur;
else if (
state.baseCur != null && state.overlay.combineTokens ||
- combine && state.overlay.combineTokens == null
+ combine && state.overlay.combineTokens == null
)
return state.baseCur + ' ' + state.overlayCur;
else
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/php.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/php.js
index ce0d0e5..3e1041b 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/php.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/php.js
@@ -89,8 +89,8 @@
// Normal string
while (
!stream.eol() &&
- !stream.match('{$', false) &&
- (!stream.match(/(\$[a-zA-Z_][a-zA-Z0-9_]*|\$\{)/, false) || escaped)
+ !stream.match('{$', false) &&
+ (!stream.match(/(\$[a-zA-Z_][a-zA-Z0-9_]*|\$\{)/, false) || escaped)
) {
next = stream.next();
if (!escaped && next == '"') {
@@ -187,9 +187,9 @@
var isPHP = state.curMode == phpMode;
if (
stream.sol() &&
- state.pending &&
- state.pending != '"' &&
- state.pending != "'"
+ state.pending &&
+ state.pending != '"' &&
+ state.pending != "'"
)
state.pending = null;
if (!isPHP) {
@@ -213,8 +213,8 @@
if (openPHP != -1) {
if (
style == 'string' &&
- (m = cur.match(/[\'\"]$/)) &&
- !/\?>/.test(cur)
+ (m = cur.match(/[\'\"]$/)) &&
+ !/\?>/.test(cur)
)
state.pending = m[0];
else
@@ -263,7 +263,7 @@
indent: function(state, textAfter) {
if (
state.curMode != phpMode && /^\s*<\//.test(textAfter) ||
- state.curMode == phpMode && /^\?>/.test(textAfter)
+ state.curMode == phpMode && /^\?>/.test(textAfter)
)
return htmlMode.indent(state.html, textAfter);
return state.curMode.indent(state.curState, textAfter);
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/python.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/python.js
index add8bc9..d498b2c 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/python.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/python.js
@@ -278,8 +278,8 @@
if (
stream.match(doubleOperators) ||
- stream.match(singleOperators) ||
- stream.match(wordOperators)
+ stream.match(singleOperators) ||
+ stream.match(wordOperators)
)
return 'operator';
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/xml.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/xml.js
index aa6b656..a63246f 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/xml.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/xml.js
@@ -245,7 +245,7 @@
this.startOfLine = startOfLine;
if (
Kludges.doNotIndent.hasOwnProperty(tagName) ||
- state.context && state.context.noIndent
+ state.context && state.context.noIndent
)
this.noIndent = true;
}
@@ -261,7 +261,7 @@
parentTagName = state.context.tagName;
if (
!Kludges.contextGrabbers.hasOwnProperty(parentTagName) ||
- !Kludges.contextGrabbers[parentTagName].hasOwnProperty(nextTagName)
+ !Kludges.contextGrabbers[parentTagName].hasOwnProperty(nextTagName)
) {
return;
}
@@ -294,8 +294,8 @@
var tagName = stream.current();
if (
state.context &&
- state.context.tagName != tagName &&
- Kludges.implicitlyClosed.hasOwnProperty(state.context.tagName)
+ state.context.tagName != tagName &&
+ Kludges.implicitlyClosed.hasOwnProperty(state.context.tagName)
)
popContext(state);
if (state.context && state.context.tagName == tagName) {
@@ -333,7 +333,7 @@
state.tagName = state.tagStart = null;
if (
type == 'selfcloseTag' ||
- Kludges.autoSelfClosers.hasOwnProperty(tagName)
+ Kludges.autoSelfClosers.hasOwnProperty(tagName)
) {
maybePopContext(state, tagName);
} else {
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/common/Geometry.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/common/Geometry.js
index bec09d5..591d388 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/common/Geometry.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/common/Geometry.js
@@ -266,7 +266,7 @@ WebInspector.Geometry.calculateAngle = function(u, v) {
var vLength = v.length();
if (
uLength <= WebInspector.Geometry._Eps ||
- vLength <= WebInspector.Geometry._Eps
+ vLength <= WebInspector.Geometry._Eps
)
return 0;
var cos = WebInspector.Geometry.scalarProduct(u, v) / uLength / vLength;
@@ -399,7 +399,7 @@ function Constraints(minimum, preferred) {
if (
this.minimum.width > this.preferred.width ||
- this.minimum.height > this.preferred.height
+ this.minimum.height > this.preferred.height
)
throw new Error('Minimum size is greater than preferred.');
}
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/common/Object.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/common/Object.js
index 1a4d51b..0c7ea56 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/common/Object.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/common/Object.js
@@ -59,7 +59,7 @@ WebInspector.Object.prototype = {
for (var i = 0; i < listeners.length; ++i) {
if (
listeners[i].listener === listener &&
- listeners[i].thisObject === thisObject
+ listeners[i].thisObject === thisObject
)
listeners.splice((i--), 1);
}
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/common/ParsedURL.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/common/ParsedURL.js
index b080dff..641e08a 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/common/ParsedURL.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/common/ParsedURL.js
@@ -142,8 +142,8 @@ WebInspector.ParsedURL.completeURL = function(baseURL, href) {
var trimmedHref = href.trim();
if (
trimmedHref.startsWith('data:') ||
- trimmedHref.startsWith('blob:') ||
- trimmedHref.startsWith('javascript:')
+ trimmedHref.startsWith('blob:') ||
+ trimmedHref.startsWith('javascript:')
)
return href;
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/common/TextRange.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/common/TextRange.js
index 8f97d13..6a7d034 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/common/TextRange.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/common/TextRange.js
@@ -141,7 +141,7 @@ WebInspector.TextRange.prototype = {
normalize: function() {
if (
this.startLine > this.endLine ||
- this.startLine === this.endLine && this.startColumn > this.endColumn
+ this.startLine === this.endLine && this.startColumn > this.endColumn
)
return new WebInspector.TextRange(
this.endLine,
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/common/TextUtils.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/common/TextUtils.js
index 2baaefd..634a924 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/common/TextUtils.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/common/TextUtils.js
@@ -110,7 +110,7 @@ WebInspector.TextUtils = {
var indentation = 0;
while (
indentation < line.length &&
- WebInspector.TextUtils.isSpaceChar(line.charAt(indentation))
+ WebInspector.TextUtils.isSpaceChar(line.charAt(indentation))
)
++indentation;
return line.substr(0, indentation);
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/components/DOMPresentationUtils.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/components/DOMPresentationUtils.js
index 3579421..845db98 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/components/DOMPresentationUtils.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/components/DOMPresentationUtils.js
@@ -184,8 +184,8 @@ WebInspector.DOMPresentationUtils.buildImagePreviewContents = function(
var imageURL = originalImageURL;
if (
!isImageResource(resource) &&
- precomputedFeatures &&
- precomputedFeatures.currentSrc
+ precomputedFeatures &&
+ precomputedFeatures.currentSrc
) {
imageURL = precomputedFeatures.currentSrc;
resource = target.resourceTreeModel.resourceForURL(imageURL);
@@ -344,9 +344,9 @@ WebInspector.DOMPresentationUtils.simpleSelector = function(node) {
if (node.nodeType() !== Node.ELEMENT_NODE) return lowerCaseName;
if (
lowerCaseName === 'input' &&
- node.getAttribute('type') &&
- !node.getAttribute('id') &&
- !node.getAttribute('class')
+ node.getAttribute('type') &&
+ !node.getAttribute('id') &&
+ !node.getAttribute('class')
)
return lowerCaseName + '[type="' + node.getAttribute('type') + '"]';
if (node.getAttribute('id'))
@@ -403,8 +403,8 @@ WebInspector.DOMPresentationUtils._cssPathStep = function(
var nodeNameLower = node.nodeName().toLowerCase();
if (
nodeNameLower === 'body' ||
- nodeNameLower === 'head' ||
- nodeNameLower === 'html'
+ nodeNameLower === 'head' ||
+ nodeNameLower === 'html'
)
return new WebInspector.DOMNodePathStep(
node.nodeNameInCorrectCase(),
@@ -536,10 +536,10 @@ WebInspector.DOMPresentationUtils._cssPathStep = function(
var result = nodeName;
if (
isTargetNode &&
- nodeName.toLowerCase() === 'input' &&
- node.getAttribute('type') &&
- !node.getAttribute('id') &&
- !node.getAttribute('class')
+ nodeName.toLowerCase() === 'input' &&
+ node.getAttribute('type') &&
+ !node.getAttribute('id') &&
+ !node.getAttribute('class')
)
result += '[type="' + node.getAttribute('type') + '"]';
if (needsNthChild) {
@@ -636,7 +636,7 @@ WebInspector.DOMPresentationUtils._xPathIndex = function(node) {
if (
left.nodeType() === Node.ELEMENT_NODE &&
- right.nodeType() === Node.ELEMENT_NODE
+ right.nodeType() === Node.ELEMENT_NODE
)
return left.localName() === right.localName();
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/components/Drawer.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/components/Drawer.js
index b162433..0de6497 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/components/Drawer.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/components/Drawer.js
@@ -151,8 +151,8 @@ WebInspector.Drawer.prototype = {
var tabId = this._tabbedPane.selectedTabId;
if (
tabId &&
- event.data['isUserGesture'] &&
- !this._tabbedPane.isTabCloseable(tabId)
+ event.data['isUserGesture'] &&
+ !this._tabbedPane.isTabCloseable(tabId)
)
this._lastSelectedViewSetting.set(tabId);
},
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/components/ExecutionContextSelector.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/components/ExecutionContextSelector.js
index 30f21a1..54c2a1e 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/components/ExecutionContextSelector.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/components/ExecutionContextSelector.js
@@ -63,7 +63,7 @@ WebInspector.ExecutionContextSelector.prototype = {
var targets = WebInspector.targetManager.targetsWithJSContext();
if (
WebInspector.context.flavor(WebInspector.Target) === target &&
- targets.length
+ targets.length
)
WebInspector.context.setFlavor(WebInspector.Target, targets[0]);
},
@@ -116,7 +116,7 @@ WebInspector.ExecutionContextSelector.prototype = {
var executionContext /** @type {!WebInspector.ExecutionContext}*/ = event.data;
if (
WebInspector.context.flavor(WebInspector.ExecutionContext) ===
- executionContext
+ executionContext
)
this._currentExecutionContextGone();
},
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/components/HandlerRegistry.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/components/HandlerRegistry.js
index ec596d1..361ffc2 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/components/HandlerRegistry.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/components/HandlerRegistry.js
@@ -126,8 +126,8 @@ WebInspector.HandlerRegistry.prototype = {
var contentType = contentProvider.contentType();
if (
contentType !== WebInspector.resourceTypes.Document &&
- contentType !== WebInspector.resourceTypes.Stylesheet &&
- contentType !== WebInspector.resourceTypes.Script
+ contentType !== WebInspector.resourceTypes.Stylesheet &&
+ contentType !== WebInspector.resourceTypes.Script
)
return;
@@ -168,7 +168,7 @@ WebInspector.HandlerRegistry.prototype = {
if (
uiSourceCode.project().type() !==
WebInspector.projectTypes.FileSystem &&
- uiSourceCode.project().type() !== WebInspector.projectTypes.Snippets
+ uiSourceCode.project().type() !== WebInspector.projectTypes.Snippets
)
contextMenu.appendItem(
WebInspector.UIString.capitalize('Save ^as...'),
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/components/InspectorView.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/components/InspectorView.js
index ff8006b..40400ba 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/components/InspectorView.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/components/InspectorView.js
@@ -409,8 +409,8 @@ WebInspector.InspectorView.prototype = {
panelIndex = event.keyCode - 0x31;
else if (
event.keyCode > 0x60 &&
- event.keyCode < 0x6a &&
- keyboardEvent.location === KeyboardEvent.DOM_KEY_LOCATION_NUMPAD
+ event.keyCode < 0x6a &&
+ keyboardEvent.location === KeyboardEvent.DOM_KEY_LOCATION_NUMPAD
)
panelIndex = event.keyCode - 0x61;
if (panelIndex !== -1) {
@@ -431,8 +431,8 @@ WebInspector.InspectorView.prototype = {
// If there is, we cancel the timer and do not consider this a panel switch.
if (
!WebInspector.isWin() ||
- !this._openBracketIdentifiers[event.keyIdentifier] &&
- !this._closeBracketIdentifiers[event.keyIdentifier]
+ !this._openBracketIdentifiers[event.keyIdentifier] &&
+ !this._closeBracketIdentifiers[event.keyIdentifier]
) {
this._keyDownInternal(event);
return;
@@ -493,7 +493,7 @@ WebInspector.InspectorView.prototype = {
);
if (
!this._history.length ||
- this._history[this._history.length - 1] !== panelName
+ this._history[this._history.length - 1] !== panelName
)
this._history.push(panelName);
this._historyIterator = this._history.length - 1;
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/components/ObjectPropertiesSection.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/components/ObjectPropertiesSection.js
index 5796801..de85a1d 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/components/ObjectPropertiesSection.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/components/ObjectPropertiesSection.js
@@ -77,7 +77,7 @@ WebInspector.ObjectPropertiesSection.prototype = {
update: function() {
if (
this.object.arrayLength() >
- WebInspector.ObjectPropertiesSection._arrayLoadThreshold
+ WebInspector.ObjectPropertiesSection._arrayLoadThreshold
) {
this.propertiesTreeOutline.removeChildren();
WebInspector.ArrayGroupingTreeElement._populateArray(
@@ -179,7 +179,7 @@ WebInspector.ObjectPropertyTreeElement.prototype = {
var editableElement = this.valueElement;
if (
(this.property.writable || this.property.setter) &&
- event.target.isSelfOrDescendant(editableElement)
+ event.target.isSelfOrDescendant(editableElement)
)
this._startEditing();
return false;
@@ -419,7 +419,7 @@ WebInspector.ObjectPropertyTreeElement._populate = function(
) {
if (
value.arrayLength() >
- WebInspector.ObjectPropertiesSection._arrayLoadThreshold
+ WebInspector.ObjectPropertiesSection._arrayLoadThreshold
) {
treeElement.removeChildren();
WebInspector.ArrayGroupingTreeElement._populateArray(
@@ -537,10 +537,10 @@ WebInspector.ObjectPropertyTreeElement.populateWithProperties = function(
}
if (
value &&
- value.type === 'object' &&
- (value.subtype === 'map' ||
- value.subtype === 'set' ||
- value.subtype === 'iterator')
+ value.type === 'object' &&
+ (value.subtype === 'map' ||
+ value.subtype === 'set' ||
+ value.subtype === 'iterator')
)
treeNode.appendChild(new WebInspector.CollectionEntriesMainTreeElement(
value,
@@ -1115,7 +1115,7 @@ WebInspector.ArrayGroupingTreeElement.prototype = {
onpopulate: function() {
if (
this._propertyCount >=
- WebInspector.ArrayGroupingTreeElement._bucketThreshold
+ WebInspector.ArrayGroupingTreeElement._bucketThreshold
) {
WebInspector.ArrayGroupingTreeElement._populateRanges(
this,
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/console/ConsolePanel.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/console/ConsolePanel.js
index d575ab5..b43288b 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/console/ConsolePanel.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/console/ConsolePanel.js
@@ -95,7 +95,7 @@ WebInspector.ConsolePanel.WrapperView.prototype = {
wasShown: function() {
if (
!WebInspector.inspectorView.currentPanel() ||
- WebInspector.inspectorView.currentPanel().name !== 'console'
+ WebInspector.inspectorView.currentPanel().name !== 'console'
)
this._showViewInWrapper();
},
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/console/ConsoleView.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/console/ConsoleView.js
index f358b80..d8c0b4a 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/console/ConsoleView.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/console/ConsoleView.js
@@ -355,7 +355,7 @@ WebInspector.ConsoleView.prototype = {
.forEach(this._executionContextCreated, this);
if (
WebInspector.targetManager.targets().length > 1 &&
- WebInspector.targetManager.mainTarget().isPage()
+ WebInspector.targetManager.mainTarget().isPage()
)
this._showAllMessagesCheckbox.element.classList.toggle('hidden', false);
},
@@ -496,7 +496,7 @@ WebInspector.ConsoleView.prototype = {
.insertBefore(newOption, options[index]);
if (
executionContext ===
- WebInspector.context.flavor(WebInspector.ExecutionContext)
+ WebInspector.context.flavor(WebInspector.ExecutionContext)
)
this._executionContextSelector.select(newOption);
@@ -640,7 +640,7 @@ WebInspector.ConsoleView.prototype = {
if (
message.type === WebInspector.ConsoleMessage.MessageType.Command ||
- message.type === WebInspector.ConsoleMessage.MessageType.Result
+ message.type === WebInspector.ConsoleMessage.MessageType.Result
)
message.timestamp = this._consoleMessages.length
? this._consoleMessages.peekLast().consoleMessage().timestamp
@@ -694,7 +694,7 @@ WebInspector.ConsoleView.prototype = {
var lastMessage = this._visibleViewMessages.peekLast();
if (
viewMessage.consoleMessage().type ===
- WebInspector.ConsoleMessage.MessageType.EndGroup
+ WebInspector.ConsoleMessage.MessageType.EndGroup
) {
if (lastMessage && !this._currentGroup.messagesHidden())
lastMessage.incrementCloseGroupDecorationCount();
@@ -707,8 +707,8 @@ WebInspector.ConsoleView.prototype = {
.originatingMessage();
if (
lastMessage &&
- originatingMessage &&
- lastMessage.consoleMessage() === originatingMessage
+ originatingMessage &&
+ lastMessage.consoleMessage() === originatingMessage
)
lastMessage
.toMessageElement()
@@ -718,7 +718,7 @@ WebInspector.ConsoleView.prototype = {
if (
this._searchRegex &&
- this._searchMessage(this._visibleViewMessages.length - 1)
+ this._searchMessage(this._visibleViewMessages.length - 1)
)
this._searchableView.updateSearchMatchesCount(
this._regexMatchRanges.length,
@@ -924,9 +924,9 @@ WebInspector.ConsoleView.prototype = {
_tryToCollapseMessages: function(lastMessage, viewMessage) {
if (
!WebInspector.settings.consoleTimestampsEnabled.get() &&
- viewMessage &&
- !lastMessage.consoleMessage().isGroupMessage() &&
- lastMessage.consoleMessage().isEqual(viewMessage.consoleMessage())
+ viewMessage &&
+ !lastMessage.consoleMessage().isGroupMessage() &&
+ lastMessage.consoleMessage().isEqual(viewMessage.consoleMessage())
) {
viewMessage.incrementRepeatCount();
return true;
@@ -961,7 +961,7 @@ WebInspector.ConsoleView.prototype = {
_messagesClicked: function(event) {
if (
!this._prompt.isCaretInsidePrompt() &&
- event.target.isComponentSelectionCollapsed()
+ event.target.isComponentSelectionCollapsed()
)
this._prompt.moveCaretToEndOfPrompt();
var groupMessage = event.target.enclosingNodeOrSelfWithClass(
@@ -1360,21 +1360,21 @@ WebInspector.ConsoleViewFilter.prototype = {
if (message.target() !== executionContext.target()) return false;
if (
message.executionContextId &&
- message.executionContextId !== executionContext.id
+ message.executionContextId !== executionContext.id
) {
return false;
}
}
if (
WebInspector.settings.hideNetworkMessages.get() &&
- viewMessage.consoleMessage().source ===
- WebInspector.ConsoleMessage.MessageSource.Network
+ viewMessage.consoleMessage().source ===
+ WebInspector.ConsoleMessage.MessageSource.Network
)
return false;
if (viewMessage.consoleMessage().isGroupMessage()) return true;
if (
message.type === WebInspector.ConsoleMessage.MessageType.Result ||
- message.type === WebInspector.ConsoleMessage.MessageType.Command
+ message.type === WebInspector.ConsoleMessage.MessageType.Command
)
return true;
if (message.url && this._messageURLFilters[message.url]) return false;
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/console/ConsoleViewMessage.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/console/ConsoleViewMessage.js
index 751f211..ac1bb41 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/console/ConsoleViewMessage.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/console/ConsoleViewMessage.js
@@ -151,7 +151,7 @@ WebInspector.ConsoleViewMessage.prototype = {
if (!this._messageElement) {
if (
consoleMessage.source ===
- WebInspector.ConsoleMessage.MessageSource.ConsoleAPI
+ WebInspector.ConsoleMessage.MessageSource.ConsoleAPI
) {
switch (consoleMessage.type) {
case WebInspector.ConsoleMessage.MessageType.Trace:
@@ -185,8 +185,8 @@ WebInspector.ConsoleViewMessage.prototype = {
default:
if (
consoleMessage.parameters &&
- consoleMessage.parameters.length === 1 &&
- consoleMessage.parameters[0].type === 'string'
+ consoleMessage.parameters.length === 1 &&
+ consoleMessage.parameters[0].type === 'string'
)
this._messageElement = this._tryFormatAsError /**@type {string} */(
consoleMessage.parameters[0].value,
@@ -198,13 +198,13 @@ WebInspector.ConsoleViewMessage.prototype = {
}
} else if (
consoleMessage.source ===
- WebInspector.ConsoleMessage.MessageSource.Network
+ WebInspector.ConsoleMessage.MessageSource.Network
) {
if (consoleMessage.request) {
this._messageElement = createElement('span');
if (
consoleMessage.level ===
- WebInspector.ConsoleMessage.MessageLevel.Error
+ WebInspector.ConsoleMessage.MessageLevel.Error
) {
this._messageElement.createTextChildren(
consoleMessage.request.requestMethod,
@@ -260,7 +260,7 @@ WebInspector.ConsoleViewMessage.prototype = {
if (
consoleMessage.source !==
WebInspector.ConsoleMessage.MessageSource.Network ||
- consoleMessage.request
+ consoleMessage.request
) {
if (consoleMessage.scriptId) {
this._anchorElement = this._linkifyScriptId(
@@ -661,7 +661,7 @@ WebInspector.ConsoleViewMessage.prototype = {
var maxFlatArrayLength = 100;
if (
this.useArrayPreviewInFormatter(array) ||
- array.arrayLength() > maxFlatArrayLength
+ array.arrayLength() > maxFlatArrayLength
)
this._formatParameterAsArrayOrObject(
array,
@@ -1041,8 +1041,8 @@ WebInspector.ConsoleViewMessage.prototype = {
if (
this._message.type ===
WebInspector.ConsoleMessage.MessageType.StartGroup ||
- this._message.type ===
- WebInspector.ConsoleMessage.MessageType.StartGroupCollapsed
+ this._message.type ===
+ WebInspector.ConsoleMessage.MessageType.StartGroupCollapsed
)
element.classList.add('console-group-title');
element.appendChild(this.formattedMessage());
@@ -1261,9 +1261,7 @@ WebInspector.ConsoleViewMessage.prototype = {
var target = this._target();
if (
!target ||
- !errorPrefixes.some(
- String.prototype.startsWith.bind(new String(string)),
- )
+ !errorPrefixes.some(String.prototype.startsWith.bind(new String(string)))
)
return null;
var lines = string.split('\n');
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/console/CustomPreviewSection.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/console/CustomPreviewSection.js
index a598f4b..c023185 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/console/CustomPreviewSection.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/console/CustomPreviewSection.js
@@ -138,8 +138,8 @@ WebInspector.CustomPreviewSection.prototype = {
var value = attributes[key];
if (
key !== 'style' ||
- typeof value !== 'string' ||
- !this._validateStyleAttributes(value)
+ typeof value !== 'string' ||
+ !this._validateStyleAttributes(value)
)
continue;
@@ -217,8 +217,8 @@ WebInspector.CustomPreviewSection.prototype = {
function substituteObjectTagsInCustomPreview(jsonMLObject) {
if (
!jsonMLObject ||
- typeof jsonMLObject !== 'object' ||
- typeof jsonMLObject.splice !== 'function'
+ typeof jsonMLObject !== 'object' ||
+ typeof jsonMLObject.splice !== 'function'
)
return;
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/extensions/ExtensionAPI.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/extensions/ExtensionAPI.js
index eefc6ec..62a907c 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/extensions/ExtensionAPI.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/extensions/ExtensionAPI.js
@@ -813,10 +813,10 @@ function injectedExtensionAPI(injectedScriptId) {
// We only care about global hotkeys, not about random text
if (
!event.ctrlKey &&
- !event.altKey &&
- !event.metaKey &&
- !/^F\d+$/.test(event.keyIdentifier) &&
- event.keyIdentifier !== Esc
+ !event.altKey &&
+ !event.metaKey &&
+ !/^F\d+$/.test(event.keyIdentifier) &&
+ event.keyIdentifier !== Esc
)
return;
var requestPayload = {
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/extensions/ExtensionServer.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/extensions/ExtensionServer.js
index 8cd50f4..e9e7431 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/extensions/ExtensionServer.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/extensions/ExtensionServer.js
@@ -322,8 +322,7 @@ WebInspector.ExtensionServer.prototype = {
var panelDescriptor = this._clientObjects[message.panel];
if (
!panelDescriptor ||
- !(panelDescriptor instanceof
- WebInspector.ExtensionServerPanelDescriptor)
+ !(panelDescriptor instanceof WebInspector.ExtensionServerPanelDescriptor)
)
return this._status.E_NOTFOUND(message.panel);
var button = new WebInspector.ExtensionButton(
@@ -692,10 +691,10 @@ WebInspector.ExtensionServer.prototype = {
function handleEventEntry(entry) {
if (
!entry.ctrlKey &&
- !entry.altKey &&
- !entry.metaKey &&
- !/^F\d+$/.test(entry.keyIdentifier) &&
- entry.keyIdentifier !== Esc
+ !entry.altKey &&
+ !entry.metaKey &&
+ !/^F\d+$/.test(entry.keyIdentifier) &&
+ entry.keyIdentifier !== Esc
)
return;
// Fool around closure compiler -- it has its own notion of both KeyboardEvent constructor
@@ -1071,8 +1070,8 @@ WebInspector.ExtensionServer.prototype = {
var executionContext = executionContexts[i];
if (
executionContext.frameId === frame.id &&
- executionContext.origin === contextSecurityOrigin &&
- !executionContext.isMainWorldContext
+ executionContext.origin === contextSecurityOrigin &&
+ !executionContext.isMainWorldContext
)
context = executionContext;
}
@@ -1090,7 +1089,7 @@ WebInspector.ExtensionServer.prototype = {
var executionContext = executionContexts[i];
if (
executionContext.frameId === frame.id &&
- executionContext.isMainWorldContext
+ executionContext.isMainWorldContext
)
context = executionContext;
}
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/main/AdvancedApp.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/main/AdvancedApp.js
index 55251ea..0a5828c 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/main/AdvancedApp.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/main/AdvancedApp.js
@@ -49,7 +49,7 @@ WebInspector.AdvancedApp.prototype = {
);
if (
!WebInspector.overridesSupport.responsiveDesignAvailable() &&
- WebInspector.overridesSupport.emulationEnabled()
+ WebInspector.overridesSupport.emulationEnabled()
)
WebInspector.inspectorView.showViewInDrawer('emulation', true);
},
@@ -121,7 +121,7 @@ WebInspector.AdvancedApp.prototype = {
_openToolboxWindow: function(event) {
if (
/** @type {string} */ event.data.to !==
- WebInspector.DockController.State.Undocked
+ WebInspector.DockController.State.Undocked
)
return;
@@ -172,7 +172,7 @@ WebInspector.AdvancedApp.prototype = {
if (
/** @type {string} */ event.data.to ===
WebInspector.DockController.State.Undocked &&
- this._toolboxResponsiveDesignView
+ this._toolboxResponsiveDesignView
) {
// Hide inspectorView and force layout to mimic the undocked state.
this._rootSplitView.hideSidebar();
@@ -194,9 +194,9 @@ WebInspector.AdvancedApp.prototype = {
this._updateForUndocked();
} else if (
this._toolboxResponsiveDesignView &&
- event &&
- /** @type {string} */ event.data.from ===
- WebInspector.DockController.State.Undocked
+ event &&
+ /** @type {string} */ event.data.from ===
+ WebInspector.DockController.State.Undocked
) {
// Don't update yet for smooth transition.
this._rootSplitView.hideSidebar();
@@ -213,7 +213,7 @@ WebInspector.AdvancedApp.prototype = {
this._changingDockSide = false;
if (
/** @type {string} */ event.data.from ===
- WebInspector.DockController.State.Undocked
+ WebInspector.DockController.State.Undocked
) {
// Restore docked layout in case of smooth transition.
this._updateForDocked /** @type {string} */(event.data.to);
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/main/Main.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/main/Main.js
index 40fb4e3..b9d113c 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/main/Main.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/main/Main.js
@@ -224,7 +224,7 @@ WebInspector.Main.prototype = {
Runtime.experiments.enableForTest('serviceWorkersInResources');
if (
testPath.indexOf('timeline/') !== -1 ||
- testPath.indexOf('layers/') !== -1
+ testPath.indexOf('layers/') !== -1
)
Runtime.experiments.enableForTest('layersPanel');
}
@@ -489,7 +489,7 @@ WebInspector.Main.prototype = {
WebInspector.overridesSupport.applyInitialOverrides();
if (
!WebInspector.overridesSupport.responsiveDesignAvailable() &&
- WebInspector.overridesSupport.emulationEnabled()
+ WebInspector.overridesSupport.emulationEnabled()
)
WebInspector.inspectorView.showViewInDrawer('emulation', true);
},
@@ -685,7 +685,7 @@ WebInspector.Main.prototype = {
if (
!WebInspector.Dialog.currentInstance() &&
- WebInspector.inspectorView.currentPanel()
+ WebInspector.inspectorView.currentPanel()
) {
WebInspector.inspectorView.currentPanel().handleShortcut(event);
if (event.handled) {
@@ -810,8 +810,8 @@ WebInspector.Main.prototype = {
WebInspector.reload = function() {
if (
WebInspector.dockController.canDock() &&
- WebInspector.dockController.dockSide() ===
- WebInspector.DockController.State.Undocked
+ WebInspector.dockController.dockSide() ===
+ WebInspector.DockController.State.Undocked
)
InspectorFrontendHost.setIsDocked(true, function() {});
window.top.location.reload();
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/main/OverridesView.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/main/OverridesView.js
index 1570ab0..22afc5a 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/main/OverridesView.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/main/OverridesView.js
@@ -683,7 +683,7 @@ WebInspector.OverridesView.SensorsTab.prototype = {
if (
modificationSource !=
- WebInspector.OverridesView.SensorsTab.DeviceOrientationModificationSource.UserInput
+ WebInspector.OverridesView.SensorsTab.DeviceOrientationModificationSource.UserInput
) {
this._alphaElement.value = deviceOrientation.alpha;
this._betaElement.value = deviceOrientation.beta;
@@ -692,7 +692,7 @@ WebInspector.OverridesView.SensorsTab.prototype = {
if (
modificationSource !=
- WebInspector.OverridesView.SensorsTab.DeviceOrientationModificationSource.UserDrag
+ WebInspector.OverridesView.SensorsTab.DeviceOrientationModificationSource.UserDrag
)
this._setBoxOrientation(deviceOrientation);
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/platform/DOMExtension.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/platform/DOMExtension.js
index a06e041..3c3b7a3 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/platform/DOMExtension.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/platform/DOMExtension.js
@@ -135,8 +135,8 @@ Node.prototype.traverseNextTextNode = function(stayWithin) {
var nonTextTags = {STYLE: 1, SCRIPT: 1};
while (
node &&
- (node.nodeType !== Node.TEXT_NODE ||
- nonTextTags[node.parentElement.nodeName])
+ (node.nodeType !== Node.TEXT_NODE ||
+ nonTextTags[node.parentElement.nodeName])
)
node = node.traverseNextNode(stayWithin);
@@ -845,8 +845,8 @@ Event.prototype.deepElementFromPoint = function() {
var node = this.target;
while (
node &&
- node.nodeType !== Node.DOCUMENT_FRAGMENT_NODE &&
- node.nodeType !== Node.DOCUMENT_NODE
+ node.nodeType !== Node.DOCUMENT_FRAGMENT_NODE &&
+ node.nodeType !== Node.DOCUMENT_NODE
)
node = node.parentNode;
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/platform/utilities.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/platform/utilities.js
index df0b6b6..933ff6c 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/platform/utilities.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/platform/utilities.js
@@ -114,7 +114,7 @@ String.prototype.lineAt = function(lineNumber) {
var lineContent = this.substring(lineStart, lineEnd);
if (
lineContent.length > 0 &&
- lineContent.charAt(lineContent.length - 1) === '\r'
+ lineContent.charAt(lineContent.length - 1) === '\r'
)
lineContent = lineContent.substring(0, lineContent.length - 1);
return lineContent;
@@ -686,9 +686,9 @@ Object.defineProperty(Uint32Array.prototype, 'sort', {
}
if (
leftBound === 0 &&
- rightBound === this.length - 1 &&
- sortWindowLeft === 0 &&
- sortWindowRight >= rightBound
+ rightBound === this.length - 1 &&
+ sortWindowLeft === 0 &&
+ sortWindowRight >= rightBound
)
this.sort(comparator);
else
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/ApplicationCacheModel.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/ApplicationCacheModel.js
index 3463388..d6d9a3e 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/ApplicationCacheModel.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/ApplicationCacheModel.js
@@ -136,7 +136,7 @@ WebInspector.ApplicationCacheModel.prototype = {
if (
this._manifestURLsByFrame[frameId] &&
- manifestURL !== this._manifestURLsByFrame[frameId]
+ manifestURL !== this._manifestURLsByFrame[frameId]
)
this._frameManifestRemoved(frameId);
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/CPUProfileDataModel.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/CPUProfileDataModel.js
index 8bfc4da..c42ed55 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/CPUProfileDataModel.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/CPUProfileDataModel.js
@@ -122,7 +122,7 @@ WebInspector.CPUProfileDataModel.prototype = {
for (
var i = 0;
i < topLevelNodes.length &&
- !(this.gcNode && this.programNode && this.idleNode);
+ !(this.gcNode && this.programNode && this.idleNode);
i++
) {
var node = topLevelNodes[i];
@@ -151,9 +151,9 @@ WebInspector.CPUProfileDataModel.prototype = {
var nextNodeId = samples[sampleIndex + 1];
if (
nodeId === programNodeId &&
- !isSystemNode(prevNodeId) &&
- !isSystemNode(nextNodeId) &&
- bottomNode(idToNode[prevNodeId]) === bottomNode(idToNode[nextNodeId])
+ !isSystemNode(prevNodeId) &&
+ !isSystemNode(nextNodeId) &&
+ bottomNode(idToNode[prevNodeId]) === bottomNode(idToNode[nextNodeId])
) {
samples[sampleIndex] = prevNodeId;
}
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/CSSMetadata.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/CSSMetadata.js
index 98ec245..f49fedd 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/CSSMetadata.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/CSSMetadata.js
@@ -176,8 +176,8 @@ WebInspector.CSSMetadata.canonicalPropertyName = function(name) {
0;
if (
!match ||
- hasSupportedProperties &&
- !propertiesSet.hasOwnProperty(match[1].toLowerCase())
+ hasSupportedProperties &&
+ !propertiesSet.hasOwnProperty(match[1].toLowerCase())
)
return name.toLowerCase();
return match[1].toLowerCase();
@@ -1522,7 +1522,7 @@ WebInspector.CSSMetadata.prototype = {
var results = [];
while (
firstIndex < this._values.length &&
- this._values[firstIndex].startsWith(prefix)
+ this._values[firstIndex].startsWith(prefix)
)
results.push(this._values[firstIndex++]);
return results;
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/CSSStyleModel.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/CSSStyleModel.js
index 67d6be9..c54ba0d 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/CSSStyleModel.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/CSSStyleModel.js
@@ -541,7 +541,7 @@ WebInspector.CSSStyleModel.prototype = {
var styleSheetHeader = headers[i];
if (
styleSheetHeader.frameId === frameId &&
- styleSheetHeader.isViaInspector()
+ styleSheetHeader.isViaInspector()
) {
callback(styleSheetHeader);
return;
@@ -603,9 +603,9 @@ WebInspector.CSSStyleModel.prototype = {
if (
!styleSheetId ||
- !this.hasEventListeners(
- WebInspector.CSSStyleModel.Events.StyleSheetChanged,
- )
+ !this.hasEventListeners(
+ WebInspector.CSSStyleModel.Events.StyleSheetChanged,
+ )
)
return;
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/ConsoleModel.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/ConsoleModel.js
index 6272856..3595990 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/ConsoleModel.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/ConsoleModel.js
@@ -344,8 +344,8 @@ WebInspector.ConsoleMessage.prototype = {
// Never treat objects as equal - their properties might change over time.
if (
this.parameters[i].type !== msg.parameters[i].type ||
- msg.parameters[i].type === 'object' ||
- this.parameters[i].value !== msg.parameters[i].value
+ msg.parameters[i].type === 'object' ||
+ this.parameters[i].value !== msg.parameters[i].value
)
return false;
}
@@ -374,9 +374,9 @@ WebInspector.ConsoleMessage.prototype = {
for (var i = 0, n = stackTrace1.length; i < n; ++i) {
if (
stackTrace1[i].url !== stackTrace2[i].url ||
- stackTrace1[i].functionName !== stackTrace2[i].functionName ||
- stackTrace1[i].lineNumber !== stackTrace2[i].lineNumber ||
- stackTrace1[i].columnNumber !== stackTrace2[i].columnNumber
+ stackTrace1[i].functionName !== stackTrace2[i].functionName ||
+ stackTrace1[i].lineNumber !== stackTrace2[i].lineNumber ||
+ stackTrace1[i].columnNumber !== stackTrace2[i].columnNumber
)
return false;
}
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/ContentProviders.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/ContentProviders.js
index f115ecb..b565e15 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/ContentProviders.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/ContentProviders.js
@@ -70,8 +70,8 @@ WebInspector.ConcatenatedScriptsContentProvider.prototype = {
if (
lineNumber < scripts[i].lineOffset ||
- lineNumber === scripts[i].lineOffset &&
- columnNumber <= scripts[i].columnOffset
+ lineNumber === scripts[i].lineOffset &&
+ columnNumber <= scripts[i].columnOffset
)
this._sortedScriptsArray.push(scripts[i]);
}
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/CookieParser.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/CookieParser.js
index 8419fbb..03e15ec 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/CookieParser.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/CookieParser.js
@@ -406,10 +406,10 @@ WebInspector.Cookies.cookieMatchesResourceURL = function(cookie, resourceURL) {
var url = resourceURL.asParsedURL();
if (
!url ||
- !WebInspector.Cookies.cookieDomainMatchesResourceDomain(
- cookie.domain(),
- url.host,
- )
+ !WebInspector.Cookies.cookieDomainMatchesResourceDomain(
+ cookie.domain(),
+ url.host,
+ )
)
return false;
return url.path.startsWith(cookie.path()) &&
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/DOMModel.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/DOMModel.js
index a0c0523..4bfd237 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/DOMModel.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/DOMModel.js
@@ -126,14 +126,14 @@ WebInspector.DOMNode = function(domModel, doc, isInShadowTree, payload) {
// HTML and BODY from internal iframes should not overwrite top-level ones.
if (
this.ownerDocument &&
- !this.ownerDocument.documentElement &&
- this._nodeName === 'HTML'
+ !this.ownerDocument.documentElement &&
+ this._nodeName === 'HTML'
)
this.ownerDocument.documentElement = this;
if (
this.ownerDocument &&
- !this.ownerDocument.body &&
- this._nodeName === 'BODY'
+ !this.ownerDocument.body &&
+ this._nodeName === 'BODY'
)
this.ownerDocument.body = this;
} else if (this._nodeType === Node.DOCUMENT_TYPE_NODE) {
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/DebuggerModel.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/DebuggerModel.js
index d659469..c3b67a0 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/DebuggerModel.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/DebuggerModel.js
@@ -683,12 +683,12 @@ WebInspector.DebuggerModel.prototype = {
if (!closestScript) closestScript = script;
if (
script.lineOffset > lineNumber ||
- script.lineOffset === lineNumber && script.columnOffset > columnNumber
+ script.lineOffset === lineNumber && script.columnOffset > columnNumber
)
continue;
if (
script.endLine < lineNumber ||
- script.endLine === lineNumber && script.endColumn <= columnNumber
+ script.endLine === lineNumber && script.endColumn <= columnNumber
)
continue;
closestScript = script;
@@ -1588,7 +1588,7 @@ WebInspector.DebuggerPausedDetails.prototype = {
exception: function() {
if (
this.reason !== WebInspector.DebuggerModel.BreakReason.Exception &&
- this.reason !== WebInspector.DebuggerModel.BreakReason.PromiseRejection
+ this.reason !== WebInspector.DebuggerModel.BreakReason.PromiseRejection
)
return null;
return this
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/FileSystemModel.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/FileSystemModel.js
index 689e861..a483598 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/FileSystemModel.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/FileSystemModel.js
@@ -165,8 +165,8 @@ WebInspector.FileSystemModel.prototype = {
) {
if (
!errorCode &&
- backendRootEntry &&
- this._fileSystemsForOrigin[origin] === store
+ backendRootEntry &&
+ this._fileSystemsForOrigin[origin] === store
) {
var fileSystem = new WebInspector.FileSystemModel.FileSystem(
this,
@@ -379,7 +379,7 @@ WebInspector.FileSystemModel.prototype = {
var type = fileSystem.type;
if (
this._fileSystemsForOrigin[origin] &&
- this._fileSystemsForOrigin[origin][type]
+ this._fileSystemsForOrigin[origin][type]
) {
delete this._fileSystemsForOrigin[origin][type];
this._fileSystemRemoved(fileSystem);
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/HAREntry.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/HAREntry.js
index bad05be..0884e45 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/HAREntry.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/HAREntry.js
@@ -118,7 +118,7 @@ WebInspector.HAREntry.prototype = {
mimeType: (
this._request.mimeType || 'x-unknown'
)
- // text: this._request.content // TODO: pull out into a boolean flag, as content can be huge (and needs to be requested with an async call),
+ // text: this._request.content // TODO: pull out into a boolean flag, as content can be huge (and needs to be requested with an async call),,,
};
var compression = this.responseCompression;
if (typeof compression === 'number') content.compression = compression;
@@ -262,8 +262,8 @@ WebInspector.HAREntry.prototype = {
get responseCompression() {
if (
this._request.cached() ||
- this._request.statusCode === 304 ||
- this._request.statusCode === 206
+ this._request.statusCode === 304 ||
+ this._request.statusCode === 206
)
return;
if (!this._request.responseHeadersText) return;
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/InspectorBackend.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/InspectorBackend.js
index 9a5e6bf..9ba893c 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/InspectorBackend.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/InspectorBackend.js
@@ -69,7 +69,7 @@ InspectorBackendClass.prototype = {
var upperCaseLength = 0;
while (
upperCaseLength < domain.length &&
- domain[upperCaseLength].toLowerCase() !== domain[upperCaseLength]
+ domain[upperCaseLength].toLowerCase() !== domain[upperCaseLength]
)
++upperCaseLength;
@@ -916,7 +916,7 @@ InspectorBackendClass.AgentPrototype.prototype = {
if (
args.length === 1 &&
- (!allowExtraUndefinedArg || typeof args[0] !== 'undefined')
+ (!allowExtraUndefinedArg || typeof args[0] !== 'undefined')
) {
errorCallback(
"Protocol Error: Optional callback argument for method '" +
@@ -1046,9 +1046,9 @@ InspectorBackendClass.AgentPrototype.prototype = {
dispatchResponse: function(messageObject, methodName, callback) {
if (
messageObject.error &&
- messageObject.error.code !== InspectorBackendClass._DevToolsErrorCode &&
- !InspectorBackendClass.Options.suppressRequestErrors &&
- !this._suppressErrorLogging
+ messageObject.error.code !== InspectorBackendClass._DevToolsErrorCode &&
+ !InspectorBackendClass.Options.suppressRequestErrors &&
+ !this._suppressErrorLogging
) {
var id = InspectorFrontendHost.isUnderTest() ? '##' : messageObject.id;
console.error(
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/NetworkManager.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/NetworkManager.js
index 6d9ba2a..43a3ab2 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/NetworkManager.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/NetworkManager.js
@@ -269,16 +269,16 @@ WebInspector.NetworkDispatcher.prototype = {
// Don't check for mime-types in 304-resources.
if (
networkRequest.hasErrorStatusCode() ||
- networkRequest.statusCode === 304 ||
- networkRequest.statusCode === 204
+ networkRequest.statusCode === 304 ||
+ networkRequest.statusCode === 204
)
return true;
var resourceType = networkRequest.resourceType();
if (
resourceType !== WebInspector.resourceTypes.Stylesheet &&
- resourceType !== WebInspector.resourceTypes.Document &&
- resourceType !== WebInspector.resourceTypes.TextTrack
+ resourceType !== WebInspector.resourceTypes.Document &&
+ resourceType !== WebInspector.resourceTypes.TextTrack
) {
return true;
}
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/NetworkRequest.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/NetworkRequest.js
index cf9c04a..1734272 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/NetworkRequest.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/NetworkRequest.js
@@ -657,9 +657,9 @@ WebInspector.NetworkRequest.prototype = {
var requestContentType = this.requestContentType();
if (
!requestContentType ||
- !requestContentType.match(
- /^application\/x-www-form-urlencoded\s*(;.*)?$/i,
- )
+ !requestContentType.match(
+ /^application\/x-www-form-urlencoded\s*(;.*)?$/i,
+ )
)
return null;
this._parsedFormParameters = this._parseParameters(this.requestFormData);
@@ -685,8 +685,10 @@ WebInspector.NetworkRequest.prototype = {
_parseParameters: function(queryString) {
function parseNameValue(pair) {
var position = pair.indexOf('=');
- if (position === -1) return {name: pair, value: ''};
- else return {
+ if (position === -1)
+ return {name: pair, value: ''};
+ else
+ return {
name: pair.substring(0, position),
value: pair.substring(position + 1),
};
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/OverridesSupport.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/OverridesSupport.js
index c566079..21c3b51 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/OverridesSupport.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/OverridesSupport.js
@@ -322,9 +322,9 @@ WebInspector.OverridesSupport.DeviceOrientation._clearDeviceOrientationOverride
WebInspector.OverridesSupport.deviceSizeValidator = function(value) {
if (
!value ||
- /^[\d]+$/.test(value) &&
- value >= 0 &&
- value <= WebInspector.OverridesSupport.MaxDeviceSize
+ /^[\d]+$/.test(value) &&
+ value >= 0 &&
+ value <= WebInspector.OverridesSupport.MaxDeviceSize
)
return '';
return WebInspector.UIString('Value must be non-negative integer');
@@ -696,7 +696,7 @@ WebInspector.OverridesSupport.prototype = {
scale = 1;
while (
available.width < dipWidth * scale ||
- available.height < dipHeight * scale
+ available.height < dipHeight * scale
)
scale *= 0.8;
}
@@ -709,8 +709,8 @@ WebInspector.OverridesSupport.prototype = {
);
if (
scale === 1 &&
- available.width >= dipWidth &&
- available.height >= dipHeight
+ available.width >= dipWidth &&
+ available.height >= dipHeight
) {
// When we have enough space, no page size override is required. This will speed things up and remove lag.
overrideWidth = 0;
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/ResourceTreeModel.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/ResourceTreeModel.js
index 07b5656..f75eebb 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/ResourceTreeModel.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/ResourceTreeModel.js
@@ -321,7 +321,7 @@ WebInspector.ResourceTreeModel.prototype = {
var request /** @type {!WebInspector.NetworkRequest} */ = event.data;
if (
request.failed ||
- request.resourceType() === WebInspector.resourceTypes.XHR
+ request.resourceType() === WebInspector.resourceTypes.XHR
)
return;
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/RuntimeModel.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/RuntimeModel.js
index d327d72..dd2f5cc 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/RuntimeModel.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/RuntimeModel.js
@@ -78,8 +78,8 @@ WebInspector.RuntimeModel.prototype = {
// The private script context should be hidden behind an experiment.
if (
context.name == WebInspector.RuntimeModel._privateScript &&
- !context.origin &&
- !Runtime.experiments.isEnabled('privateScriptInspection')
+ !context.origin &&
+ !Runtime.experiments.isEnabled('privateScriptInspection')
) {
return;
}
@@ -471,9 +471,9 @@ WebInspector.ExecutionContext.prototype = {
try {
if (
type === 'array' &&
- o === object &&
- ArrayBuffer.isView(o) &&
- o.length > 9999
+ o === object &&
+ ArrayBuffer.isView(o) &&
+ o.length > 9999
)
continue;
var names = Object.getOwnPropertyNames(o);
@@ -493,8 +493,8 @@ WebInspector.ExecutionContext.prototype = {
);
else if (
result.type === 'string' ||
- result.type === 'number' ||
- result.type === 'boolean'
+ result.type === 'number' ||
+ result.type === 'boolean'
)
this.evaluate(
'(' + getCompletions + ')("' + result.type + '")',
@@ -626,7 +626,7 @@ WebInspector.ExecutionContext.prototype = {
// Assume that all non-ASCII characters are letters and thus can be used as part of identifier.
if (
dotNotation &&
- !/^[a-zA-Z_$\u008F-\uFFFF][a-zA-Z0-9_$\u008F-\uFFFF]*$/.test(property)
+ !/^[a-zA-Z_$\u008F-\uFFFF][a-zA-Z0-9_$\u008F-\uFFFF]*$/.test(property)
)
continue;
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/ServiceWorkerManager.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/ServiceWorkerManager.js
index 7b21f13..afd6fc0 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/ServiceWorkerManager.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/ServiceWorkerManager.js
@@ -175,7 +175,7 @@ WebInspector.ServiceWorkerManager.prototype = {
if (
registration.isDeleted &&
- !this._versions.get(registration.registrationId)
+ !this._versions.get(registration.registrationId)
) {
this._registrations.delete(registration.registrationId);
this.dispatchEventToListeners(
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/SourceMap.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/SourceMap.js
index 396f506..a330043 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/SourceMap.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/SourceMap.js
@@ -182,7 +182,7 @@ WebInspector.SourceMap.prototype = {
var mapping = this._mappings[middle];
if (
lineNumber < mapping[0] ||
- lineNumber === mapping[0] && columnNumber < mapping[1]
+ lineNumber === mapping[0] && columnNumber < mapping[1]
)
count = step;
else {
@@ -193,9 +193,9 @@ WebInspector.SourceMap.prototype = {
var entry = this._mappings[first];
if (
!first &&
- entry &&
- (lineNumber < entry[0] ||
- lineNumber === entry[0] && columnNumber < entry[1])
+ entry &&
+ (lineNumber < entry[0] ||
+ lineNumber === entry[0] && columnNumber < entry[1])
)
return null;
return entry;
@@ -268,7 +268,7 @@ WebInspector.SourceMap.prototype = {
columnNumber += this._decodeVLQ(stringCharIterator);
if (
!stringCharIterator.hasNext() ||
- this._isSeparator(stringCharIterator.peek())
+ this._isSeparator(stringCharIterator.peek())
) {
this._mappings.push([lineNumber, columnNumber]);
continue;
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/Target.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/Target.js
index 889df50..44b1f68 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/Target.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/Target.js
@@ -177,8 +177,8 @@ WebInspector.Target.prototype = {
if (
this.isPage() &&
- (Runtime.experiments.isEnabled('serviceWorkersInPageFrontend') ||
- Runtime.experiments.isEnabled('serviceWorkersInResources'))
+ (Runtime.experiments.isEnabled('serviceWorkersInPageFrontend') ||
+ Runtime.experiments.isEnabled('serviceWorkersInResources'))
)
this.serviceWorkerManager = new WebInspector.ServiceWorkerManager(this);
@@ -413,8 +413,8 @@ WebInspector.TargetManager.prototype = {
for (var i = 0; i < listeners.length; ++i) {
if (
listeners[i].modelClass === modelClass &&
- listeners[i].listener === listener &&
- listeners[i].thisObject === thisObject
+ listeners[i].listener === listener &&
+ listeners[i].thisObject === thisObject
)
listeners.splice((i--), 1);
}
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/TracingModel.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/TracingModel.js
index 1dd0631..fa7374b 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/TracingModel.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/TracingModel.js
@@ -204,7 +204,7 @@ WebInspector.TracingModel.prototype = {
// so there's a chance we're getting records from the past.
if (
timestamp &&
- (!this._minimumRecordTime || timestamp < this._minimumRecordTime)
+ (!this._minimumRecordTime || timestamp < this._minimumRecordTime)
)
this._minimumRecordTime = timestamp;
var endTimeStamp = (payload.ts + (payload.dur || 0)) / 1000;
@@ -220,16 +220,16 @@ WebInspector.TracingModel.prototype = {
if (
event.name ===
WebInspector.TracingModel.DevToolsMetadataEvent.TracingStartedInPage &&
- event.category ===
- WebInspector.TracingModel.DevToolsMetadataEventCategory
+ event.category ===
+ WebInspector.TracingModel.DevToolsMetadataEventCategory
) {
this._devtoolsPageMetadataEvents.push(event);
}
if (
event.name ===
WebInspector.TracingModel.DevToolsMetadataEvent.TracingSessionIdForWorker &&
- event.category ===
- WebInspector.TracingModel.DevToolsMetadataEventCategory
+ event.category ===
+ WebInspector.TracingModel.DevToolsMetadataEventCategory
) {
this._devtoolsWorkerMetadataEvents.push(event);
}
@@ -717,7 +717,7 @@ WebInspector.TracingModel.AsyncEvent.prototype = {
this.steps.push(event);
if (
event.phase === WebInspector.TracingModel.Phase.AsyncEnd ||
- event.phase === WebInspector.TracingModel.Phase.NestableAsyncEnd
+ event.phase === WebInspector.TracingModel.Phase.NestableAsyncEnd
) {
this.setEndTime(event.startTime);
// FIXME: ideally, we shouldn't do this, but this makes the logic of converting
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/snippets/ScriptSnippetModel.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/snippets/ScriptSnippetModel.js
index 4d21283..ad84ae6 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/snippets/ScriptSnippetModel.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/snippets/ScriptSnippetModel.js
@@ -165,9 +165,9 @@ WebInspector.ScriptSnippetModel.prototype = {
newName = newName.trim();
if (
!newName ||
- newName.indexOf('/') !== -1 ||
- name === newName ||
- this._snippetStorage.snippetForName(newName)
+ newName.indexOf('/') !== -1 ||
+ name === newName ||
+ this._snippetStorage.snippetForName(newName)
) {
callback(false);
return;
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/source_frame/CodeMirrorTextEditor.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/source_frame/CodeMirrorTextEditor.js
index 4df2c38..531cafd 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/source_frame/CodeMirrorTextEditor.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/source_frame/CodeMirrorTextEditor.js
@@ -505,7 +505,7 @@ WebInspector.CodeMirrorTextEditor.prototype = {
var tokenValue = line.substring(token.startColumn, token.endColumn);
if (
tokenValue[0] === tokenValue[tokenValue.length - 1] &&
- (tokenValue[0] === "'" || tokenValue[0] === '"')
+ (tokenValue[0] === "'" || tokenValue[0] === '"')
)
return CodeMirror.Pass;
this._codeMirror.replaceSelection(quoteCharacter);
@@ -521,7 +521,7 @@ WebInspector.CodeMirrorTextEditor.prototype = {
var line = this.line(position.lineNumber);
if (
line.length === position.columnNumber &&
- WebInspector.TextUtils.lineIndent(line).length === line.length
+ WebInspector.TextUtils.lineIndent(line).length === line.length
)
this._codeMirror.replaceRange(
'',
@@ -634,7 +634,7 @@ WebInspector.CodeMirrorTextEditor.prototype = {
if (
columnNumber === length && direction === 1 ||
- columnNumber === 0 && direction === -1
+ columnNumber === 0 && direction === -1
)
return this._normalizePositionForOverlappingColumn(
lineNumber,
@@ -647,7 +647,7 @@ WebInspector.CodeMirrorTextEditor.prototype = {
// Move through initial spaces if any.
while (
valid(charNumber, length) &&
- WebInspector.TextUtils.isSpaceChar(text[charNumber])
+ WebInspector.TextUtils.isSpaceChar(text[charNumber])
)
charNumber += direction;
if (!valid(charNumber, length))
@@ -656,7 +656,7 @@ WebInspector.CodeMirrorTextEditor.prototype = {
if (WebInspector.TextUtils.isStopChar(text[charNumber])) {
while (
valid(charNumber, length) &&
- WebInspector.TextUtils.isStopChar(text[charNumber])
+ WebInspector.TextUtils.isStopChar(text[charNumber])
)
charNumber += direction;
if (!valid(charNumber, length))
@@ -670,9 +670,9 @@ WebInspector.CodeMirrorTextEditor.prototype = {
charNumber += direction;
while (
valid(charNumber, length) &&
- !isWordStart(text, charNumber) &&
- !isWordEnd(text, charNumber) &&
- WebInspector.TextUtils.isWordChar(text[charNumber])
+ !isWordStart(text, charNumber) &&
+ !isWordEnd(text, charNumber) &&
+ WebInspector.TextUtils.isWordChar(text[charNumber])
)
charNumber += direction;
@@ -849,7 +849,7 @@ WebInspector.CodeMirrorTextEditor.prototype = {
var doc = this.element.ownerDocument;
if (
doc._codeMirrorWhitespaceStyleInjected ||
- !WebInspector.settings.showWhitespacesInEditor.get()
+ !WebInspector.settings.showWhitespacesInEditor.get()
)
return;
doc._codeMirrorWhitespaceStyleInjected = true;
@@ -860,7 +860,7 @@ WebInspector.CodeMirrorTextEditor.prototype = {
for (
var i = 1;
i <=
- WebInspector.CodeMirrorTextEditor.MaximumNumberOfWhitespacesPerSingleSpan;
+ WebInspector.CodeMirrorTextEditor.MaximumNumberOfWhitespacesPerSingleSpan;
++i
) {
spaceChars += spaceChar;
@@ -889,9 +889,9 @@ WebInspector.CodeMirrorTextEditor.prototype = {
cursorPositionToCoordinates: function(lineNumber, column) {
if (
lineNumber >= this._codeMirror.lineCount() ||
- lineNumber < 0 ||
- column < 0 ||
- column > this._codeMirror.getLine(lineNumber).length
+ lineNumber < 0 ||
+ column < 0 ||
+ column > this._codeMirror.getLine(lineNumber).length
)
return null;
var metrics = this._codeMirror.cursorCoords(new CodeMirror.Pos(
@@ -912,15 +912,15 @@ WebInspector.CodeMirrorTextEditor.prototype = {
var element = this.element.ownerDocument.elementFromPoint(x, y);
if (
!element ||
- !element.isSelfOrDescendant(this._codeMirror.getWrapperElement())
+ !element.isSelfOrDescendant(this._codeMirror.getWrapperElement())
)
return null;
var gutterBox = this._codeMirror.getGutterElement().boxInWindow();
if (
x >= gutterBox.x &&
- x <= gutterBox.x + gutterBox.width &&
- y >= gutterBox.y &&
- y <= gutterBox.y + gutterBox.height
+ x <= gutterBox.x + gutterBox.width &&
+ y >= gutterBox.y &&
+ y <= gutterBox.y + gutterBox.height
)
return null;
var coords = this._codeMirror.coordsChar({left: x, top: y});
@@ -963,7 +963,7 @@ WebInspector.CodeMirrorTextEditor.prototype = {
function lineIterator(lineHandle) {
if (
lineHandle.text.length >
- WebInspector.CodeMirrorTextEditor.LongLineModeLineLengthThreshold
+ WebInspector.CodeMirrorTextEditor.LongLineModeLineLengthThreshold
)
hasLongLines = true;
return hasLongLines;
@@ -988,7 +988,7 @@ WebInspector.CodeMirrorTextEditor.prototype = {
while (
spaces <
WebInspector.CodeMirrorTextEditor.MaximumNumberOfWhitespacesPerSingleSpan &&
- stream.peek() === ' '
+ stream.peek() === ' '
) {
++spaces;
stream.next();
@@ -1793,7 +1793,7 @@ WebInspector.CodeMirrorTextEditor.TokenHighlighter.prototype = {
var tokenFirstChar = token.charAt(0);
if (
stream.match(token) &&
- (stream.eol() || !WebInspector.TextUtils.isWordChar(stream.peek()))
+ (stream.eol() || !WebInspector.TextUtils.isWordChar(stream.peek()))
)
return stream.column() === selectionStart.ch
? 'token-highlight column-with-selection'
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/source_frame/SourceFrame.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/source_frame/SourceFrame.js
index 8434ce0..5aa6acd 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/source_frame/SourceFrame.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/source_frame/SourceFrame.js
@@ -271,8 +271,8 @@ WebInspector.SourceFrame.prototype = {
if (!mimeType) return '';
if (
mimeType.indexOf('javascript') >= 0 ||
- mimeType.indexOf('jscript') >= 0 ||
- mimeType.indexOf('ecmascript') >= 0
+ mimeType.indexOf('jscript') >= 0 ||
+ mimeType.indexOf('ecmascript') >= 0
)
return 'text/javascript';
// A hack around the fact that files with "php" extension might be either standalone or html embedded php scripts.
@@ -977,11 +977,11 @@ WebInspector.SourceFrame.RowMessageBucket.prototype = {
var message = this._messages[i].message();
if (
!maxMessage ||
- WebInspector.SourceFrameMessage.messageLevelComparator(
- maxMessage,
- message,
- ) <
- 0
+ WebInspector.SourceFrameMessage.messageLevelComparator(
+ maxMessage,
+ message,
+ ) <
+ 0
)
maxMessage = message;
}
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/source_frame/TextEditorAutocompleteController.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/source_frame/TextEditorAutocompleteController.js
index de8725e..6d85312 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/source_frame/TextEditorAutocompleteController.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/source_frame/TextEditorAutocompleteController.js
@@ -134,8 +134,8 @@ WebInspector.TextEditorAutocompleteController.prototype = {
this._prefixRange = prefixRange;
if (
!oldPrefixRange ||
- prefixRange.startLine !== oldPrefixRange.startLine ||
- prefixRange.startColumn !== oldPrefixRange.startColumn
+ prefixRange.startLine !== oldPrefixRange.startLine ||
+ prefixRange.startColumn !== oldPrefixRange.startColumn
)
this._updateAnchorBox();
this._suggestBox.updateSuggestions(
@@ -190,7 +190,7 @@ WebInspector.TextEditorAutocompleteController.prototype = {
acceptSuggestion: function() {
if (
this._prefixRange.endColumn - this._prefixRange.startColumn ===
- this._currentSuggestion.length
+ this._currentSuggestion.length
)
return;
@@ -232,8 +232,8 @@ WebInspector.TextEditorAutocompleteController.prototype = {
var cursor = this._codeMirror.getCursor();
if (
cursor.line !== this._prefixRange.startLine ||
- cursor.ch > this._prefixRange.endColumn ||
- cursor.ch <= this._prefixRange.startColumn
+ cursor.ch > this._prefixRange.endColumn ||
+ cursor.ch <= this._prefixRange.startColumn
)
this.finishAutocomplete();
},
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/AdvancedSearchView.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/AdvancedSearchView.js
index 18218d3..ce0371e 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/AdvancedSearchView.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/AdvancedSearchView.js
@@ -352,8 +352,8 @@ WebInspector.AdvancedSearchView.ToggleDrawerViewActionDelegate.prototype = {
var searchView = WebInspector.AdvancedSearchView._instance;
if (
!searchView ||
- !searchView.isShowing() ||
- searchView._search !== document.activeElement
+ !searchView.isShowing() ||
+ searchView._search !== document.activeElement
) {
var selection = WebInspector.inspectorView.element.getDeepSelection();
var queryCandidate = '';
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/CSSSourceFrame.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/CSSSourceFrame.js
index 20e5ac8..7be65fa 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/CSSSourceFrame.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/CSSSourceFrame.js
@@ -173,14 +173,14 @@ WebInspector.CSSSourceFrame.AutocompleteDelegate.prototype = {
if (token.type === 'css-property') return seenColumn ? token : null;
if (
token.type &&
- !(token.type.startsWith('whitespace') ||
- token.type.startsWith('css-comment'))
+ !(token.type.startsWith('whitespace') ||
+ token.type.startsWith('css-comment'))
)
return null;
if (
!token.type &&
- line.substring(token.startColumn, token.endColumn) === ':'
+ line.substring(token.startColumn, token.endColumn) === ':'
) {
if (!seenColumn) seenColumn = true;
else return null;
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/CallStackSidebarPane.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/CallStackSidebarPane.js
index 42c53c2..4b94c12 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/CallStackSidebarPane.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/CallStackSidebarPane.js
@@ -212,7 +212,7 @@ WebInspector.CallStackSidebarPane.prototype = {
callFrame._asyncCallFrame.setHidden(false);
if (
i &&
- callFrame._asyncCallFrame !== this.callFrames[i - 1]._asyncCallFrame
+ callFrame._asyncCallFrame !== this.callFrames[i - 1]._asyncCallFrame
)
this.callFrameList.addItem(callFrame._asyncCallFrame);
}
@@ -439,7 +439,7 @@ WebInspector.CallStackSidebarPane.prototype = {
if (callFrame.isHidden()) continue;
if (
lastCallFrame &&
- callFrame._asyncCallFrame !== lastCallFrame._asyncCallFrame
+ callFrame._asyncCallFrame !== lastCallFrame._asyncCallFrame
)
text += callFrame._asyncCallFrame.title() + '\n';
text += callFrame.title() + ' (' + callFrame.subtitle() + ')\n';
@@ -481,7 +481,7 @@ WebInspector.CallStackSidebarPane.prototype = {
return;
if (
event.keyIdentifier === 'Up' && this._selectPreviousCallFrameOnStack() ||
- event.keyIdentifier === 'Down' && this._selectNextCallFrameOnStack()
+ event.keyIdentifier === 'Down' && this._selectNextCallFrameOnStack()
)
event.consume(true);
},
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/EventListenerBreakpointsSidebarPane.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/EventListenerBreakpointsSidebarPane.js
index 6a9c14a..de6bf86 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/EventListenerBreakpointsSidebarPane.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/EventListenerBreakpointsSidebarPane.js
@@ -226,7 +226,7 @@ WebInspector.EventListenerBreakpointsSidebarPane.eventNameForUI = function(
if (auxData) {
if (
eventName === 'instrumentation:webglErrorFired' &&
- auxData['webglErrorName']
+ auxData['webglErrorName']
) {
var errorName = auxData['webglErrorName'];
// If there is a hex code of the error, display only this.
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/FileBasedSearchResultsPane.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/FileBasedSearchResultsPane.js
index cce7fa1..c62a90a 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/FileBasedSearchResultsPane.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/FileBasedSearchResultsPane.js
@@ -46,7 +46,7 @@ WebInspector.FileBasedSearchResultsPane.prototype = {
// Expand until at least a certain number of matches is expanded.
if (
this._matchesExpandedCount <
- WebInspector.FileBasedSearchResultsPane.matchesExpandedByDefaultCount
+ WebInspector.FileBasedSearchResultsPane.matchesExpandedByDefaultCount
)
fileTreeElement.expand();
this._matchesExpandedCount += searchResult.searchMatches.length;
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/FilteredItemSelectionDialog.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/FilteredItemSelectionDialog.js
index d2a8165..1824dcf 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/FilteredItemSelectionDialog.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/FilteredItemSelectionDialog.js
@@ -119,7 +119,7 @@ WebInspector.FilteredItemSelectionDialog.prototype = {
WebInspector.setCurrentFocusElement(this._promptElement);
if (
this._filteredItems.length &&
- this._viewportControl.lastVisibleIndex() === -1
+ this._viewportControl.lastVisibleIndex() === -1
)
this._viewportControl.refresh();
},
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/JavaScriptBreakpointsSidebarPane.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/JavaScriptBreakpointsSidebarPane.js
index d3824a3..daf4c7f 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/JavaScriptBreakpointsSidebarPane.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/JavaScriptBreakpointsSidebarPane.js
@@ -136,7 +136,7 @@ WebInspector.JavaScriptBreakpointsSidebarPane.prototype = {
while (currentElement) {
if (
currentElement._data &&
- this._compareBreakpoints(currentElement._data, element._data) > 0
+ this._compareBreakpoints(currentElement._data, element._data) > 0
)
break;
currentElement = currentElement.nextSibling;
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/JavaScriptSourceFrame.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/JavaScriptSourceFrame.js
index c1610c0..589162c 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/JavaScriptSourceFrame.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/JavaScriptSourceFrame.js
@@ -222,7 +222,7 @@ WebInspector.JavaScriptSourceFrame.prototype = {
var contentType = this._uiSourceCode.contentType();
if (
contentType !== WebInspector.resourceTypes.Script &&
- contentType !== WebInspector.resourceTypes.Document
+ contentType !== WebInspector.resourceTypes.Document
)
return;
var projectType = this._uiSourceCode.project().type();
@@ -448,7 +448,7 @@ WebInspector.JavaScriptSourceFrame.prototype = {
if (
this._uiSourceCode.project().type() ===
WebInspector.projectTypes.Network &&
- WebInspector.settings.jsSourceMapsEnabled.get()
+ WebInspector.settings.jsSourceMapsEnabled.get()
) {
if (this._scriptFileForTarget.size) {
var scriptFile = this._scriptFileForTarget.valuesArray()[0];
@@ -466,7 +466,7 @@ WebInspector.JavaScriptSourceFrame.prototype = {
_workingCopyChanged: function(event) {
if (
this._supportsEnabledBreakpointsWhileEditing() ||
- this._scriptFileForTarget.size
+ this._scriptFileForTarget.size
)
return;
if (this._uiSourceCode.isDirty()) this._muteBreakpointsWhileEditing();
@@ -595,7 +595,7 @@ WebInspector.JavaScriptSourceFrame.prototype = {
_updateDivergedInfobar: function() {
if (
this._uiSourceCode.project().type() !==
- WebInspector.projectTypes.FileSystem
+ WebInspector.projectTypes.FileSystem
) {
this._hideDivergedInfobar();
return;
@@ -611,8 +611,8 @@ WebInspector.JavaScriptSourceFrame.prototype = {
} else {
if (
hasDivergedScript &&
- !this._uiSourceCode.isDirty() &&
- !this._hasCommittedLiveEdit
+ !this._uiSourceCode.isDirty() &&
+ !this._hasCommittedLiveEdit
)
this._showDivergedInfobar();
}
@@ -689,9 +689,9 @@ WebInspector.JavaScriptSourceFrame.prototype = {
if (textSelection && !textSelection.isEmpty()) {
if (
textSelection.startLine !== textSelection.endLine ||
- textSelection.startLine !== mouseLine ||
- mouseColumn < textSelection.startColumn ||
- mouseColumn > textSelection.endColumn
+ textSelection.startLine !== mouseLine ||
+ mouseColumn < textSelection.startColumn ||
+ mouseColumn > textSelection.endColumn
)
return;
var leftCorner = this.textEditor.cursorPositionToCoordinates(
@@ -795,8 +795,8 @@ WebInspector.JavaScriptSourceFrame.prototype = {
var target = WebInspector.context.flavor(WebInspector.Target);
if (
selectedCallFrame.target() != target ||
- !target.debuggerModel.isPaused() ||
- !result
+ !target.debuggerModel.isPaused() ||
+ !result
) {
this._popoverHelper.hidePopover();
return;
@@ -935,7 +935,7 @@ WebInspector.JavaScriptSourceFrame.prototype = {
_generateValuesInSource: function() {
if (
!Runtime.experiments.isEnabled('inlineVariableValues') ||
- !WebInspector.settings.inlineVariableValues.get()
+ !WebInspector.settings.inlineVariableValues.get()
)
return;
var executionContext = WebInspector.context.flavor(
@@ -979,7 +979,7 @@ WebInspector.JavaScriptSourceFrame.prototype = {
);
if (
functionUILocation.uiSourceCode !== this._uiSourceCode ||
- executionUILocation.uiSourceCode !== this._uiSourceCode
+ executionUILocation.uiSourceCode !== this._uiSourceCode
) {
this._clearValueWidgets();
return;
@@ -1303,9 +1303,9 @@ WebInspector.JavaScriptSourceFrame.prototype = {
var eventObject = eventData.event;
if (
eventObject.button != 0 ||
- eventObject.altKey ||
- eventObject.ctrlKey ||
- eventObject.metaKey
+ eventObject.altKey ||
+ eventObject.ctrlKey ||
+ eventObject.metaKey
)
return;
this._toggleBreakpoint(lineNumber, eventObject.shiftKey);
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/NavigatorView.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/NavigatorView.js
index a005d64..cc5dcec 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/NavigatorView.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/NavigatorView.js
@@ -445,7 +445,7 @@ WebInspector.NavigatorView.prototype = {
if (
project.type() === WebInspector.projectTypes.FileSystem &&
- node === projectNode
+ node === projectNode
) {
var removeFolderLabel = WebInspector.UIString.capitalize(
'Remove ^folder from ^workspace',
@@ -568,8 +568,8 @@ WebInspector.SourcesNavigatorView.prototype = {
var inspectedPageURL = WebInspector.targetManager.inspectedPageURL();
if (
inspectedPageURL &&
- WebInspector.networkMapping.networkURL(uiSourceCode) ===
- inspectedPageURL
+ WebInspector.networkMapping.networkURL(uiSourceCode) ===
+ inspectedPageURL
)
this.revealUISourceCode(uiSourceCode, true);
}
@@ -586,8 +586,7 @@ WebInspector.SourcesNavigatorView.prototype = {
var inspectedPageURL = WebInspector.targetManager.inspectedPageURL();
if (
inspectedPageURL &&
- WebInspector.networkMapping.networkURL(uiSourceCode) ===
- inspectedPageURL
+ WebInspector.networkMapping.networkURL(uiSourceCode) === inspectedPageURL
)
this.revealUISourceCode(uiSourceCode, true);
},
@@ -632,7 +631,7 @@ WebInspector.NavigatorView._treeElementsCompare = function compare(
if (type === WebInspector.NavigatorView.Types.Domain) {
if (
treeElement.titleText ===
- WebInspector.targetManager.inspectedPageDomain()
+ WebInspector.targetManager.inspectedPageDomain()
)
return 1;
return 2;
@@ -1150,8 +1149,8 @@ WebInspector.NavigatorUISourceCodeTreeNode.prototype = {
var titleText = this._uiSourceCode.displayName();
if (
!ignoreIsDirty &&
- (this._uiSourceCode.isDirty() ||
- this._uiSourceCode.hasUnsavedCommittedChanges())
+ (this._uiSourceCode.isDirty() ||
+ this._uiSourceCode.hasUnsavedCommittedChanges())
)
titleText = '*' + titleText;
this._treeElement.titleText = titleText;
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/RevisionHistoryView.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/RevisionHistoryView.js
index 7cd2d67..8b0d177 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/RevisionHistoryView.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/RevisionHistoryView.js
@@ -96,7 +96,7 @@ WebInspector.RevisionHistoryView.prototype = {
for (var i = 0; i < rootElement.childCount(); ++i) {
if (
rootElement.childAt(i).title.localeCompare(uiSourceCode.displayName()) >
- 0
+ 0
) {
rootElement.insertChild(uiSourceCodeItem, i);
break;
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/ScopeChainSidebarPane.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/ScopeChainSidebarPane.js
index 23f286a..1a2fdbd 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/ScopeChainSidebarPane.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/ScopeChainSidebarPane.js
@@ -167,7 +167,7 @@ WebInspector.ScopeChainSidebarPane.prototype = {
var element /** @type {!WebInspector.ObjectPropertyTreeElement} */ = event.data;
if (
element.isExpandable() &&
- this._expandedProperties.has(this._propertyPath(element))
+ this._expandedProperties.has(this._propertyPath(element))
)
element.expand();
},
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/ScriptFormatter.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/ScriptFormatter.js
index 971b576..cf9d63c 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/ScriptFormatter.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/ScriptFormatter.js
@@ -47,8 +47,8 @@ WebInspector.Formatter.format = function(
) {
if (
contentType === WebInspector.resourceTypes.Script ||
- contentType === WebInspector.resourceTypes.Document ||
- contentType === WebInspector.resourceTypes.Stylesheet
+ contentType === WebInspector.resourceTypes.Document ||
+ contentType === WebInspector.resourceTypes.Stylesheet
)
new WebInspector.ScriptFormatter(mimeType, content, callback);
else
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/ScriptFormatterEditorAction.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/ScriptFormatterEditorAction.js
index cfe8ee2..aef3359 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/ScriptFormatterEditorAction.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/ScriptFormatterEditorAction.js
@@ -217,9 +217,9 @@ WebInspector.ScriptFormatterEditorAction.prototype = {
var networkURL = WebInspector.networkMapping.networkURL(uiSourceCode);
if (
this._isFormatableScript(uiSourceCode) &&
- networkURL &&
- this._pathsToFormatOnLoad.has(path) &&
- !this._formattedPaths.get(path)
+ networkURL &&
+ this._pathsToFormatOnLoad.has(path) &&
+ !this._formattedPaths.get(path)
)
this._formatUISourceCodeScript(uiSourceCode);
},
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/SourcesNavigator.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/SourcesNavigator.js
index 9479170..3f5151b 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/SourcesNavigator.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/SourcesNavigator.js
@@ -191,7 +191,7 @@ WebInspector.SnippetsNavigatorView.prototype = {
);
if (
uiSourceCode.project().type() !== WebInspector.projectTypes.Snippets ||
- !executionContext
+ !executionContext
)
return;
WebInspector.scriptSnippetModel.evaluateScriptSnippet(
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/SourcesPanel.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/SourcesPanel.js
index 82f0910..dd63fb1 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/SourcesPanel.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/SourcesPanel.js
@@ -531,7 +531,7 @@ WebInspector.SourcesPanel.prototype = {
if (
!callFrame ||
- callFrame.target() !== WebInspector.context.flavor(WebInspector.Target)
+ callFrame.target() !== WebInspector.context.flavor(WebInspector.Target)
)
return;
@@ -1106,14 +1106,13 @@ WebInspector.SourcesPanel.prototype = {
if (
uiSourceCode.project().type() === WebInspector.projectTypes.Network ||
- uiSourceCode.project().type() ===
- WebInspector.projectTypes.ContentScripts
+ uiSourceCode.project().type() === WebInspector.projectTypes.ContentScripts
) {
if (!this._workspace.projects().filter(filterProject).length) return;
var networkURL = this._networkMapping.networkURL(uiSourceCode);
if (
this._networkMapping.uiSourceCodeForURLForAnyTarget(networkURL) ===
- uiSourceCode
+ uiSourceCode
)
contextMenu.appendItem(
WebInspector.UIString.capitalize(
@@ -1144,7 +1143,7 @@ WebInspector.SourcesPanel.prototype = {
if (
(contentType === WebInspector.resourceTypes.Script ||
contentType === WebInspector.resourceTypes.Document) &&
- projectType !== WebInspector.projectTypes.Snippets
+ projectType !== WebInspector.projectTypes.Snippets
) {
var networkURL = this._networkMapping.networkURL(uiSourceCode);
var url = projectType === WebInspector.projectTypes.Formatter
@@ -1159,7 +1158,7 @@ WebInspector.SourcesPanel.prototype = {
if (
projectType !== WebInspector.projectTypes.Debugger &&
- !event.target.isSelfOrDescendant(this._navigator.view.element)
+ !event.target.isSelfOrDescendant(this._navigator.view.element)
) {
contextMenu.appendSeparator();
contextMenu.appendItem(
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/SourcesView.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/SourcesView.js
index 2a7a986..6df5bf9 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/SourcesView.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/SourcesView.js
@@ -317,9 +317,9 @@ WebInspector.SourcesView.prototype = {
);
if (
currentUISourceCode.project().isServiceProject() &&
- currentUISourceCode !== uiSourceCode &&
- currentNetworkURL === networkURL &&
- networkURL
+ currentUISourceCode !== uiSourceCode &&
+ currentNetworkURL === networkURL &&
+ networkURL
) {
this._showFile(uiSourceCode);
this._editorContainer.removeUISourceCode(currentUISourceCode);
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/TabbedEditorContainer.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/TabbedEditorContainer.js
index 8e9bc81..3659614 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/TabbedEditorContainer.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/TabbedEditorContainer.js
@@ -242,12 +242,12 @@ WebInspector.TabbedEditorContainer.prototype = {
// FIXME: this should be replaced with common Save/Discard/Cancel dialog.
if (
!shouldPrompt ||
- confirm(
- WebInspector.UIString(
- 'Are you sure you want to close unsaved file: %s?',
- uiSourceCode.name(),
- ),
- )
+ confirm(
+ WebInspector.UIString(
+ 'Are you sure you want to close unsaved file: %s?',
+ uiSourceCode.name(),
+ ),
+ )
) {
uiSourceCode.resetWorkingCopy();
if (nextTabId) this._tabbedPane.selectTab(nextTabId, true);
@@ -300,8 +300,8 @@ WebInspector.TabbedEditorContainer.prototype = {
var snippetsProjectType = WebInspector.projectTypes.Snippets;
if (
this._history.index(this._currentFile.uri()) &&
- currentProjectType === snippetsProjectType &&
- addedProjectType !== snippetsProjectType
+ currentProjectType === snippetsProjectType &&
+ addedProjectType !== snippetsProjectType
)
this._innerShowFile(uiSourceCode, false);
},
@@ -696,7 +696,7 @@ WebInspector.TabbedEditorContainer.History.prototype = {
if (serializedItem) serializedHistory.push(serializedItem);
if (
serializedHistory.length ===
- WebInspector.TabbedEditorContainer.maximalPreviouslyViewedFilesCount
+ WebInspector.TabbedEditorContainer.maximalPreviouslyViewedFilesCount
)
break;
}
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/UISourceCodeFrame.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/UISourceCodeFrame.js
index 2f659c6..3006d33 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/UISourceCodeFrame.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/UISourceCodeFrame.js
@@ -91,13 +91,13 @@ WebInspector.UISourceCodeFrame.prototype = {
var projectType = this._uiSourceCode.project().type();
if (
projectType === WebInspector.projectTypes.Service ||
- projectType === WebInspector.projectTypes.Debugger ||
- projectType === WebInspector.projectTypes.Formatter
+ projectType === WebInspector.projectTypes.Debugger ||
+ projectType === WebInspector.projectTypes.Formatter
)
return false;
if (
projectType === WebInspector.projectTypes.Network &&
- this._uiSourceCode.contentType() === WebInspector.resourceTypes.Document
+ this._uiSourceCode.contentType() === WebInspector.resourceTypes.Document
)
return false;
return true;
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/WatchExpressionsSidebarPane.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/WatchExpressionsSidebarPane.js
index 4979112..886ce85 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/WatchExpressionsSidebarPane.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/WatchExpressionsSidebarPane.js
@@ -441,8 +441,8 @@ WebInspector.WatchExpression.prototype = {
if (
!this.isEditing() &&
- this._result &&
- (this._result.type === 'number' || this._result.type === 'string')
+ this._result &&
+ (this._result.type === 'number' || this._result.type === 'string')
)
contextMenu.appendItem(
WebInspector.UIString.capitalize('Copy ^value'),
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/WorkspaceMappingTip.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/WorkspaceMappingTip.js
index 4f55745..6e35479 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/WorkspaceMappingTip.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/WorkspaceMappingTip.js
@@ -23,7 +23,7 @@ WebInspector.WorkspaceMappingTip = function(sourcesPanel, workspace) {
if (
!this._workspaceInfobarAllowedSetting.get() &&
- !this._workspaceMappingInfobarAllowedSetting.get()
+ !this._workspaceMappingInfobarAllowedSetting.get()
)
return;
this._sourcesView.addEventListener(
@@ -58,7 +58,7 @@ WebInspector.WorkspaceMappingTip.prototype = {
// First try mapping filesystem -> network.
if (
this._workspaceMappingInfobarAllowedSetting.get() &&
- uiSourceCode.project().type() === WebInspector.projectTypes.FileSystem
+ uiSourceCode.project().type() === WebInspector.projectTypes.FileSystem
) {
var networkURL = WebInspector.networkMapping.networkURL(uiSourceCode);
var hasMappings = !!networkURL;
@@ -88,8 +88,7 @@ WebInspector.WorkspaceMappingTip.prototype = {
// Then map network -> filesystem.
if (
uiSourceCode.project().type() === WebInspector.projectTypes.Network ||
- uiSourceCode.project().type() ===
- WebInspector.projectTypes.ContentScripts
+ uiSourceCode.project().type() === WebInspector.projectTypes.ContentScripts
) {
// Suggest for localhost only.
if (!this._isLocalHost(uiSourceCode.originURL())) return;
@@ -98,7 +97,7 @@ WebInspector.WorkspaceMappingTip.prototype = {
WebInspector.networkMapping.uiSourceCodeForURLForAnyTarget(
networkURL,
) !==
- uiSourceCode
+ uiSourceCode
)
return;
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/jsdifflib.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/jsdifflib.js
index d21b557..9b326c9 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/jsdifflib.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/jsdifflib.js
@@ -193,9 +193,9 @@ difflib = {
while (
besti > alo &&
- bestj > blo &&
- !isbjunk(b[bestj - 1]) &&
- a[besti - 1] == b[bestj - 1]
+ bestj > blo &&
+ !isbjunk(b[bestj - 1]) &&
+ a[besti - 1] == b[bestj - 1]
) {
besti--;
bestj--;
@@ -204,18 +204,18 @@ difflib = {
while (
besti + bestsize < ahi &&
- bestj + bestsize < bhi &&
- !isbjunk(b[bestj + bestsize]) &&
- a[besti + bestsize] == b[bestj + bestsize]
+ bestj + bestsize < bhi &&
+ !isbjunk(b[bestj + bestsize]) &&
+ a[besti + bestsize] == b[bestj + bestsize]
) {
bestsize++;
}
while (
besti > alo &&
- bestj > blo &&
- isbjunk(b[bestj - 1]) &&
- a[besti - 1] == b[bestj - 1]
+ bestj > blo &&
+ isbjunk(b[bestj - 1]) &&
+ a[besti - 1] == b[bestj - 1]
) {
besti--;
bestj--;
@@ -224,9 +224,9 @@ difflib = {
while (
besti + bestsize < ahi &&
- bestj + bestsize < bhi &&
- isbjunk(b[bestj + bestsize]) &&
- a[besti + bestsize] == b[bestj + bestsize]
+ bestj + bestsize < bhi &&
+ isbjunk(b[bestj + bestsize]) &&
+ a[besti + bestsize] == b[bestj + bestsize]
) {
bestsize++;
}
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/toolbox/EmulatedDevices.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/toolbox/EmulatedDevices.js
index 06c5074..c655417 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/toolbox/EmulatedDevices.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/toolbox/EmulatedDevices.js
@@ -86,8 +86,8 @@ WebInspector.EmulatedDevice.fromJSONV1 = function(json) {
function parseValue(object, key, type, defaultValue) {
if (
typeof object !== 'object' ||
- object === null ||
- !object.hasOwnProperty(key)
+ object === null ||
+ !object.hasOwnProperty(key)
) {
if (typeof defaultValue !== 'undefined') return defaultValue;
throw new Error(
@@ -177,14 +177,14 @@ WebInspector.EmulatedDevice.fromJSONV1 = function(json) {
result.width = parseIntValue(json, 'width');
if (
result.width < 0 ||
- result.width > WebInspector.OverridesSupport.MaxDeviceSize
+ result.width > WebInspector.OverridesSupport.MaxDeviceSize
)
throw new Error('Emulated device has wrong width: ' + result.width);
result.height = parseIntValue(json, 'height');
if (
result.height < 0 ||
- result.height > WebInspector.OverridesSupport.MaxDeviceSize
+ result.height > WebInspector.OverridesSupport.MaxDeviceSize
)
throw new Error('Emulated device has wrong height: ' + result.height);
@@ -257,7 +257,7 @@ WebInspector.EmulatedDevice.fromJSONV1 = function(json) {
);
if (
mode.orientation !== WebInspector.EmulatedDevice.Vertical &&
- mode.orientation !== WebInspector.EmulatedDevice.Horizontal
+ mode.orientation !== WebInspector.EmulatedDevice.Horizontal
)
throw new Error(
"Emulated device mode has wrong orientation '" +
@@ -268,11 +268,11 @@ WebInspector.EmulatedDevice.fromJSONV1 = function(json) {
mode.pageRect = parseIntRect(parseValue(modes[i], 'page-rect', 'object'));
if (
mode.pageRect.top < 0 ||
- mode.pageRect.left < 0 ||
- mode.pageRect.width < 0 ||
- mode.pageRect.height < 0 ||
- mode.pageRect.top + mode.pageRect.height > orientation.height ||
- mode.pageRect.left + mode.pageRect.width > orientation.width
+ mode.pageRect.left < 0 ||
+ mode.pageRect.width < 0 ||
+ mode.pageRect.height < 0 ||
+ mode.pageRect.top + mode.pageRect.height > orientation.height ||
+ mode.pageRect.left + mode.pageRect.width > orientation.width
) {
throw new Error(
"Emulated device mode '" + mode.title + "'has wrong page rect",
@@ -653,8 +653,8 @@ WebInspector.EmulatedDevicesList.prototype = {
var lastUpdated = this._lastUpdatedSetting.get();
if (
lastUpdated &&
- Date.now() - lastUpdated <
- WebInspector.EmulatedDevicesList._UpdateIntervalMs
+ Date.now() - lastUpdated <
+ WebInspector.EmulatedDevicesList._UpdateIntervalMs
)
return;
this.update();
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/toolbox/InspectedPagePlaceholder.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/toolbox/InspectedPagePlaceholder.js
index 19543c7..08cb6f1 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/toolbox/InspectedPagePlaceholder.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/toolbox/InspectedPagePlaceholder.js
@@ -49,9 +49,9 @@ WebInspector.InspectedPagePlaceholder.prototype = {
if (
this._margins.top !== margins.top ||
- this._margins.left !== margins.left ||
- this._margins.right !== margins.right ||
- this._margins.bottom !== margins.bottom
+ this._margins.left !== margins.left ||
+ this._margins.right !== margins.right ||
+ this._margins.bottom !== margins.bottom
) {
this._margins = margins;
this._scheduleUpdate();
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/toolbox/MediaQueryInspector.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/toolbox/MediaQueryInspector.js
index c3a83f9..e238801 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/toolbox/MediaQueryInspector.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/toolbox/MediaQueryInspector.js
@@ -476,7 +476,7 @@ WebInspector.MediaQueryInspector.MediaQueryUIModel.createFromMediaQuery = functi
}
if (
minWidthPixels > maxWidthPixels ||
- !maxWidthExpression && !minWidthExpression
+ !maxWidthExpression && !minWidthExpression
)
return null;
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/toolbox/OverridesUI.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/toolbox/OverridesUI.js
index 5095f54..17a5b91 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/toolbox/OverridesUI.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/toolbox/OverridesUI.js
@@ -197,7 +197,7 @@ WebInspector.OverridesUI.createNetworkConditionsSelect = function() {
for (var i = 0; i < presets.length; ++i) {
if (
presets[i].throughput === conditions.throughput / kbps &&
- presets[i].latency === conditions.latency
+ presets[i].latency === conditions.latency
) {
presetIndex = i;
break;
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/toolbox/ResponsiveDesignView.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/toolbox/ResponsiveDesignView.js
index 4e485cc..6ae48d8 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/toolbox/ResponsiveDesignView.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/toolbox/ResponsiveDesignView.js
@@ -448,7 +448,7 @@ WebInspector.ResponsiveDesignView.prototype = {
var rulerScale = 0.5;
while (
Math.abs(rulerScale * scale - 1) >
- Math.abs((rulerScale + 0.5) * scale - 1)
+ Math.abs((rulerScale + 0.5) * scale - 1)
)
rulerScale += 0.5;
@@ -633,7 +633,7 @@ WebInspector.ResponsiveDesignView.prototype = {
if (
this._cachedZoomFactor !== zoomFactor ||
- this._cachedMediaInspectorHeight !== mediaInspectorHeight
+ this._cachedMediaInspectorHeight !== mediaInspectorHeight
) {
var cssRulerWidth = WebInspector.ResponsiveDesignView.RulerWidth /
zoomFactor +
@@ -987,7 +987,7 @@ WebInspector.ResponsiveDesignView.prototype = {
);
if (
this._mediaInspector.isShowing() ===
- WebInspector.settings.showMediaQueryInspector.get()
+ WebInspector.settings.showMediaQueryInspector.get()
)
return;
if (this._mediaInspector.isShowing()) this._mediaInspector.detach();
@@ -1092,9 +1092,9 @@ WebInspector.ResponsiveDesignView.prototype = {
function updatePageScaleFactor(finishCallback) {
if (
this._target &&
- this._viewport &&
- this._viewport.minimumPageScaleFactor <= 1 &&
- this._viewport.maximumPageScaleFactor >= 1
+ this._viewport &&
+ this._viewport.minimumPageScaleFactor <= 1 &&
+ this._viewport.maximumPageScaleFactor >= 1
)
this._target.emulationAgent().setPageScaleFactor(1);
finishCallback();
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/ContextMenu.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/ContextMenu.js
index 9ca214e..99f1124 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/ContextMenu.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/ContextMenu.js
@@ -306,7 +306,7 @@ WebInspector.ContextMenu.prototype = {
WebInspector._contextMenu = this;
if (
WebInspector.ContextMenu._useSoftMenu ||
- InspectorFrontendHost.isHostedMode()
+ InspectorFrontendHost.isHostedMode()
) {
var softMenu = new WebInspector.SoftContextMenu(
menuObject,
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/FilterBar.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/FilterBar.js
index ace0090..48b23ef 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/FilterBar.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/FilterBar.js
@@ -519,7 +519,7 @@ WebInspector.NamedBitSetFilterUI.prototype = {
_update: function() {
if (
Object.keys(this._allowedTypes).length === 0 ||
- this._allowedTypes[WebInspector.NamedBitSetFilterUI.ALL_TYPES]
+ this._allowedTypes[WebInspector.NamedBitSetFilterUI.ALL_TYPES]
) {
this._allowedTypes = {};
this._allowedTypes[WebInspector.NamedBitSetFilterUI.ALL_TYPES] = true;
@@ -567,7 +567,7 @@ WebInspector.NamedBitSetFilterUI.prototype = {
_toggleTypeFilter: function(typeName, allowMultiSelect) {
if (
allowMultiSelect &&
- typeName !== WebInspector.NamedBitSetFilterUI.ALL_TYPES
+ typeName !== WebInspector.NamedBitSetFilterUI.ALL_TYPES
)
this._allowedTypes[WebInspector.NamedBitSetFilterUI.ALL_TYPES] = false;
else
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/HistoryInput.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/HistoryInput.js
index 17bd53d..079ab22 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/HistoryInput.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/HistoryInput.js
@@ -54,7 +54,7 @@ WebInspector.HistoryInput.prototype = {
_saveToHistory: function() {
if (
this._history.length > 1 &&
- this._history[this._history.length - 2] === this.value
+ this._history[this._history.length - 2] === this.value
)
return;
this._history[this._history.length - 1] = this.value;
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/InplaceEditor.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/InplaceEditor.js
index a3099ce..c5b7a07 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/InplaceEditor.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/InplaceEditor.js
@@ -130,9 +130,9 @@ WebInspector.InplaceEditor.prototype = {
if (config.blurHandler && !config.blurHandler(element, e)) return;
if (
!isMultiline ||
- !e ||
- !e.relatedTarget ||
- !e.relatedTarget.isSelfOrDescendant(element)
+ !e ||
+ !e.relatedTarget ||
+ !e.relatedTarget.isSelfOrDescendant(element)
)
editingCommitted.call(element);
}
@@ -175,12 +175,12 @@ WebInspector.InplaceEditor.prototype = {
: event.ctrlKey && !event.shiftKey && !event.metaKey && !event.altKey;
if (
isEnterKey(event) &&
- (event.isMetaOrCtrlForTest || !isMultiline || isMetaOrCtrl)
+ (event.isMetaOrCtrlForTest || !isMultiline || isMetaOrCtrl)
)
return 'commit';
else if (
event.keyCode === WebInspector.KeyboardShortcut.Keys.Esc.code ||
- event.keyIdentifier === 'U+001B'
+ event.keyIdentifier === 'U+001B'
)
return 'cancel';
else if (
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/Popover.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/Popover.js
index 425d073..72f228f 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/Popover.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/Popover.js
@@ -225,12 +225,12 @@ WebInspector.Popover.prototype = {
if (
roomAbove > roomBelow ||
- arrowDirection === WebInspector.Popover.Orientation.Bottom
+ arrowDirection === WebInspector.Popover.Orientation.Bottom
) {
// Positioning above the anchor.
if (
anchorBox.y > newElementPosition.height + arrowHeight + borderRadius ||
- arrowDirection === WebInspector.Popover.Orientation.Bottom
+ arrowDirection === WebInspector.Popover.Orientation.Bottom
)
newElementPosition.y = anchorBox.y -
newElementPosition.height -
@@ -254,7 +254,7 @@ WebInspector.Popover.prototype = {
if (
newElementPosition.y + newElementPosition.height + borderRadius >=
totalHeight &&
- arrowDirection !== WebInspector.Popover.Orientation.Top
+ arrowDirection !== WebInspector.Popover.Orientation.Top
) {
newElementPosition.height = totalHeight -
borderRadius -
@@ -399,7 +399,7 @@ WebInspector.PopoverHelper.prototype = {
if (!this.isPopoverVisible()) return;
if (
event.relatedTarget &&
- !event.relatedTarget.isSelfOrDescendant(this._popover._contentDiv)
+ !event.relatedTarget.isSelfOrDescendant(this._popover._contentDiv)
)
this._startHidePopoverTimer();
},
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/SearchableView.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/SearchableView.js
index a4dae95..60747ce 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/SearchableView.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/SearchableView.js
@@ -457,9 +457,9 @@ WebInspector.SearchableView.prototype = {
this.cancelSearch();
if (
WebInspector.currentFocusElement() &&
- WebInspector.currentFocusElement().isDescendant(
- this._footerElementContainer,
- )
+ WebInspector.currentFocusElement().isDescendant(
+ this._footerElementContainer,
+ )
)
this.focus();
},
@@ -603,7 +603,7 @@ WebInspector.SearchableView.prototype = {
_jumpToNextSearchResult: function(isBackwardSearch) {
if (
!this._currentQuery ||
- !this._searchNavigationPrevElement.classList.contains('enabled')
+ !this._searchNavigationPrevElement.classList.contains('enabled')
)
return;
@@ -649,9 +649,9 @@ WebInspector.SearchableView.prototype = {
var query = this._searchInputElement.value;
if (
!query ||
- !forceSearch &&
- query.length < this._minimalSearchQuerySize &&
- !this._currentQuery
+ !forceSearch &&
+ query.length < this._minimalSearchQuerySize &&
+ !this._currentQuery
) {
this._clearSearch();
return;
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/ShortcutRegistry.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/ShortcutRegistry.js
index 0637c69..282f32e 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/ShortcutRegistry.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/ShortcutRegistry.js
@@ -115,8 +115,8 @@ WebInspector.ShortcutRegistry.prototype = {
function isPossiblyInputKey() {
if (
!event ||
- !WebInspector.isEditing() ||
- /^F\d+|Control|Shift|Alt|Meta|Win|U\+001B$/.test(keyIdentifier)
+ !WebInspector.isEditing() ||
+ /^F\d+|Control|Shift|Alt|Meta|Win|U\+001B$/.test(keyIdentifier)
)
return false;
@@ -125,7 +125,7 @@ WebInspector.ShortcutRegistry.prototype = {
var modifiers = WebInspector.KeyboardShortcut.Modifiers;
if (
(keyModifiers & (modifiers.Ctrl | modifiers.Alt)) ===
- (modifiers.Ctrl | modifiers.Alt)
+ (modifiers.Ctrl | modifiers.Alt)
)
return WebInspector.isWin();
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/SidebarPane.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/SidebarPane.js
index 0058672..b2eb3a9 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/SidebarPane.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/SidebarPane.js
@@ -128,7 +128,7 @@ WebInspector.SidebarPaneTitle.prototype = {
_onTitleKeyDown: function(event) {
if (
isEnterKey(event) ||
- event.keyCode === WebInspector.KeyboardShortcut.Keys.Space.code
+ event.keyCode === WebInspector.KeyboardShortcut.Keys.Space.code
)
this._toggleExpanded();
},
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/SoftContextMenu.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/SoftContextMenu.js
index d9318c7..a580119 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/SoftContextMenu.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/SoftContextMenu.js
@@ -102,8 +102,7 @@ WebInspector.SoftContextMenu.prototype = {
// Re-position menu in case it does not fit.
if (
document.body.offsetWidth <
- this._contextMenuElement.offsetLeft +
- this._contextMenuElement.offsetWidth
+ this._contextMenuElement.offsetLeft + this._contextMenuElement.offsetWidth
)
this._contextMenuElement.style.left = Math.max(
0,
@@ -112,8 +111,7 @@ WebInspector.SoftContextMenu.prototype = {
'px';
if (
document.body.offsetHeight <
- this._contextMenuElement.offsetTop +
- this._contextMenuElement.offsetHeight
+ this._contextMenuElement.offsetTop + this._contextMenuElement.offsetHeight
)
this._contextMenuElement.style.top = Math.max(
0,
@@ -302,7 +300,7 @@ WebInspector.SoftContextMenu.prototype = {
);
if (
this._highlightedMenuItemElement._subItems &&
- this._highlightedMenuItemElement._subMenuTimer
+ this._highlightedMenuItemElement._subMenuTimer
) {
clearTimeout(this._highlightedMenuItemElement._subMenuTimer);
delete this._highlightedMenuItemElement._subMenuTimer;
@@ -316,7 +314,7 @@ WebInspector.SoftContextMenu.prototype = {
this._contextMenuElement.focus();
if (
this._highlightedMenuItemElement._subItems &&
- !this._highlightedMenuItemElement._subMenuTimer
+ !this._highlightedMenuItemElement._subMenuTimer
)
this._highlightedMenuItemElement._subMenuTimer = setTimeout(
this._showSubMenu.bind(this, this._highlightedMenuItemElement),
@@ -379,8 +377,8 @@ WebInspector.SoftContextMenu.prototype = {
// Return if this is simple 'click', since dispatched on glass pane, can't use 'click' event.
if (
event.x === this._x &&
- event.y === this._y &&
- new Date().getTime() - this._time < 300
+ event.y === this._y &&
+ new Date().getTime() - this._time < 300
)
return;
this._discardMenu(true, event);
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/SplitView.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/SplitView.js
index 567f76e..922709a 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/SplitView.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/SplitView.js
@@ -175,7 +175,7 @@ WebInspector.SplitView.prototype = {
view.element.classList.remove('insertion-point-sidebar');
if (
this._showMode === WebInspector.SplitView.ShowMode.OnlyMain ||
- this._showMode === WebInspector.SplitView.ShowMode.Both
+ this._showMode === WebInspector.SplitView.ShowMode.Both
)
view.show(this.element);
}
@@ -191,7 +191,7 @@ WebInspector.SplitView.prototype = {
view.element.classList.remove('insertion-point-main');
if (
this._showMode === WebInspector.SplitView.ShowMode.OnlySidebar ||
- this._showMode === WebInspector.SplitView.ShowMode.Both
+ this._showMode === WebInspector.SplitView.ShowMode.Both
)
view.show(this.element);
}
@@ -447,7 +447,7 @@ WebInspector.SplitView.prototype = {
_innerSetSidebarSizeDIP: function(sizeDIP, animate, userAction) {
if (
this._showMode !== WebInspector.SplitView.ShowMode.Both ||
- !this.isShowing()
+ !this.isShowing()
)
return;
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/StatusBar.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/StatusBar.js
index 594b14e..8a81eeb 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/StatusBar.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/StatusBar.js
@@ -802,8 +802,8 @@ WebInspector.StatusBarStatesSettingButton.prototype = {
var lastState = this._lastStateSetting.get();
if (
lastState &&
- this._states.indexOf(lastState) >= 0 &&
- lastState != this._currentState
+ this._states.indexOf(lastState) >= 0 &&
+ lastState != this._currentState
)
return lastState;
if (this._states.length > 1 && this._currentState === this._states[0])
@@ -818,7 +818,7 @@ WebInspector.StatusBarStatesSettingButton.prototype = {
for (var index = 0; index < this._states.length; index++) {
if (
this._states[index] !== this.state() &&
- this._states[index] !== this._currentState
+ this._states[index] !== this._currentState
)
options.push(this._buttons[index]);
}
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/TabbedPane.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/TabbedPane.js
index c979147..3452ee1 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/TabbedPane.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/TabbedPane.js
@@ -971,7 +971,7 @@ WebInspector.TabbedPaneTab.prototype = {
_tabMouseDown: function(event) {
if (
event.target.classList.contains('tabbed-pane-close-button-gray') ||
- event.button === 1
+ event.button === 1
)
return;
this._tabbedPane.selectTab(this.id, true);
@@ -1068,7 +1068,7 @@ WebInspector.TabbedPaneTab.prototype = {
if (
Math.abs(event.pageX - this._dragStartX) <
- tabElement.clientWidth / 2 + 5
+ tabElement.clientWidth / 2 + 5
)
break;
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/TextPrompt.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/TextPrompt.js
index efb43b2..05e7f23 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/TextPrompt.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/TextPrompt.js
@@ -238,7 +238,7 @@ WebInspector.TextPrompt.prototype = {
delete this._selectionTimeout;
if (
!this.isCaretInsidePrompt() &&
- this._element.isComponentSelectionCollapsed()
+ this._element.isComponentSelectionCollapsed()
) {
this.moveCaretToEndOfPrompt();
this.autoCompleteSoon();
@@ -472,7 +472,7 @@ WebInspector.TextPrompt.prototype = {
if (
originalWordPrefixRange.toString() + selectionRange.toString() !==
- fullWordRange.toString()
+ fullWordRange.toString()
)
return;
@@ -529,9 +529,9 @@ WebInspector.TextPrompt.prototype = {
_completeCommonPrefix: function() {
if (
!this.autoCompleteElement ||
- !this._commonPrefix ||
- !this._userEnteredText ||
- !this._commonPrefix.startsWith(this._userEnteredText)
+ !this._commonPrefix ||
+ !this._userEnteredText ||
+ !this._commonPrefix.startsWith(this._userEnteredText)
)
return;
@@ -665,7 +665,7 @@ WebInspector.TextPrompt.prototype = {
if (
node.nodeType === Node.TEXT_NODE &&
- selectionRange.startOffset < node.nodeValue.length
+ selectionRange.startOffset < node.nodeValue.length
)
return false;
@@ -674,8 +674,8 @@ WebInspector.TextPrompt.prototype = {
if (node.nodeType === Node.TEXT_NODE && node.nodeValue.length) {
if (
foundNextText &&
- (!this.autoCompleteElement ||
- !this.autoCompleteElement.isAncestor(node))
+ (!this.autoCompleteElement ||
+ !this.autoCompleteElement.isAncestor(node))
)
return false;
foundNextText = true;
@@ -694,8 +694,8 @@ WebInspector.TextPrompt.prototype = {
var focusNode = selection.focusNode;
if (
!focusNode ||
- focusNode.nodeType !== Node.TEXT_NODE ||
- focusNode.parentNode !== this._element
+ focusNode.nodeType !== Node.TEXT_NODE ||
+ focusNode.parentNode !== this._element
)
return true;
@@ -703,7 +703,7 @@ WebInspector.TextPrompt.prototype = {
focusNode.textContent
.substring(0, selection.focusOffset)
.indexOf('\n') !==
- -1
+ -1
)
return false;
focusNode = focusNode.previousSibling;
@@ -724,14 +724,14 @@ WebInspector.TextPrompt.prototype = {
var focusNode = selection.focusNode;
if (
!focusNode ||
- focusNode.nodeType !== Node.TEXT_NODE ||
- focusNode.parentNode !== this._element
+ focusNode.nodeType !== Node.TEXT_NODE ||
+ focusNode.parentNode !== this._element
)
return true;
if (
focusNode.textContent.substring(selection.focusOffset).indexOf('\n') !==
- -1
+ -1
)
return false;
focusNode = focusNode.nextSibling;
@@ -881,10 +881,10 @@ WebInspector.TextPromptWithHistory.prototype = {
case 'U+0050': // Ctrl+P = Previous
if (
WebInspector.isMac() &&
- event.ctrlKey &&
- !event.metaKey &&
- !event.altKey &&
- !event.shiftKey
+ event.ctrlKey &&
+ !event.metaKey &&
+ !event.altKey &&
+ !event.shiftKey
) {
newText = this._previous();
isPrevious = true;
@@ -893,10 +893,10 @@ WebInspector.TextPromptWithHistory.prototype = {
case 'U+004E': // Ctrl+N = Next
if (
WebInspector.isMac() &&
- event.ctrlKey &&
- !event.metaKey &&
- !event.altKey &&
- !event.shiftKey
+ event.ctrlKey &&
+ !event.metaKey &&
+ !event.altKey &&
+ !event.shiftKey
)
newText = this._next();
break;
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/UIUtils.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/UIUtils.js
index 18b0bc8..0acb163 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/UIUtils.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/UIUtils.js
@@ -165,7 +165,7 @@ WebInspector._unregisterDragEvents = function() {
);
if (
WebInspector._dragEventsTargetDocument !==
- WebInspector._dragEventsTargetDocumentTop
+ WebInspector._dragEventsTargetDocumentTop
)
WebInspector._dragEventsTargetDocumentTop.removeEventListener(
'mouseup',
@@ -251,8 +251,8 @@ WebInspector.isBeingEdited = function(node) {
var element /** {!Element} */ = node;
if (
element.classList.contains('text-prompt') ||
- element.nodeName === 'INPUT' ||
- element.nodeName === 'TEXTAREA'
+ element.nodeName === 'INPUT' ||
+ element.nodeName === 'TEXTAREA'
)
return true;
@@ -745,8 +745,8 @@ WebInspector._isTextEditingElement = function(element) {
WebInspector.setCurrentFocusElement = function(x) {
if (
WebInspector._glassPane &&
- x &&
- !WebInspector._glassPane.element.isAncestor(x)
+ x &&
+ !WebInspector._glassPane.element.isAncestor(x)
)
return;
if (WebInspector._currentFocusElement !== x)
@@ -762,8 +762,8 @@ WebInspector.setCurrentFocusElement = function(x) {
var selection = x.getComponentSelection();
if (
!WebInspector._isTextEditingElement(WebInspector._currentFocusElement) &&
- selection.isCollapsed &&
- !WebInspector._currentFocusElement.isInsertionCaretInside()
+ selection.isCollapsed &&
+ !WebInspector._currentFocusElement.isInsertionCaretInside()
) {
var selectionRange = WebInspector._currentFocusElement.ownerDocument.createRange();
selectionRange.setStart(WebInspector._currentFocusElement, 0);
@@ -929,14 +929,14 @@ WebInspector.highlightRangesWithStyleClass = function(
while (
startIndex < textNodes.length &&
- nodeRanges[startIndex].offset + nodeRanges[startIndex].length <=
- startOffset
+ nodeRanges[startIndex].offset + nodeRanges[startIndex].length <=
+ startOffset
)
startIndex++;
var endIndex = startIndex;
while (
endIndex < textNodes.length &&
- nodeRanges[endIndex].offset + nodeRanges[endIndex].length < endOffset
+ nodeRanges[endIndex].offset + nodeRanges[endIndex].length < endOffset
)
endIndex++;
if (endIndex === textNodes.length) break;
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/ViewportControl.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/ViewportControl.js
index 85f03d4..ebe0f08 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/ViewportControl.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/ViewportControl.js
@@ -342,7 +342,7 @@ WebInspector.ViewportControl.prototype = {
var anchorOffset;
if (
this._firstVisibleIndex <= this._anchorSelection.item &&
- this._anchorSelection.item <= this._lastVisibleIndex
+ this._anchorSelection.item <= this._lastVisibleIndex
) {
anchorElement = this._anchorSelection.node;
anchorOffset = this._anchorSelection.offset;
@@ -358,7 +358,7 @@ WebInspector.ViewportControl.prototype = {
var headOffset;
if (
this._firstVisibleIndex <= this._headSelection.item &&
- this._headSelection.item <= this._lastVisibleIndex
+ this._headSelection.item <= this._lastVisibleIndex
) {
headElement = this._headSelection.node;
headOffset = this._headSelection.offset;
@@ -410,11 +410,11 @@ WebInspector.ViewportControl.prototype = {
// Tolerate 1-pixel error due to double-to-integer rounding errors.
if (
this._cumulativeHeights &&
- Math.abs(
- this._cachedItemHeight(this._firstVisibleIndex + i) -
- this._provider.fastHeight(i + this._firstVisibleIndex),
- ) >
- 1
+ Math.abs(
+ this._cachedItemHeight(this._firstVisibleIndex + i) -
+ this._provider.fastHeight(i + this._firstVisibleIndex),
+ ) >
+ 1
)
delete this._cumulativeHeights;
}
@@ -532,7 +532,7 @@ WebInspector.ViewportControl.prototype = {
.element();
if (
endSelection.node &&
- endSelection.node.isSelfOrDescendant(endSelectionElement)
+ endSelection.node.isSelfOrDescendant(endSelectionElement)
) {
var itemTextOffset = this._textOffsetInNode(
endSelectionElement,
@@ -549,7 +549,7 @@ WebInspector.ViewportControl.prototype = {
.element();
if (
startSelection.node &&
- startSelection.node.isSelfOrDescendant(startSelectionElement)
+ startSelection.node.isSelfOrDescendant(startSelectionElement)
) {
var itemTextOffset = this._textOffsetInNode(
startSelectionElement,
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/treeoutline.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/treeoutline.js
index 7aa81ff..729c032 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/treeoutline.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/treeoutline.js
@@ -168,9 +168,9 @@ TreeOutline.prototype = {
if (
!this.selectedTreeElement ||
- event.shiftKey ||
- event.metaKey ||
- event.ctrlKey
+ event.shiftKey ||
+ event.metaKey ||
+ event.ctrlKey
)
return;
@@ -475,8 +475,8 @@ TreeElement.prototype = {
var parent = child.parent;
if (
this.treeOutline &&
- this.treeOutline.selectedTreeElement &&
- this.treeOutline.selectedTreeElement.hasAncestorOrSelf(child)
+ this.treeOutline.selectedTreeElement &&
+ this.treeOutline.selectedTreeElement.hasAncestorOrSelf(child)
) {
if (child.nextSibling) child.nextSibling.select(true);
else if (child.previousSibling) child.previousSibling.select(true);
@@ -514,9 +514,9 @@ TreeElement.prototype = {
removeChildren: function() {
if (
!this.root &&
- this.treeOutline &&
- this.treeOutline.selectedTreeElement &&
- this.treeOutline.selectedTreeElement.hasAncestorOrSelf(this)
+ this.treeOutline &&
+ this.treeOutline.selectedTreeElement &&
+ this.treeOutline.selectedTreeElement.hasAncestorOrSelf(this)
)
this.select(true);
@@ -629,9 +629,9 @@ TreeElement.prototype = {
var selection = element.getComponentSelection();
if (
selection &&
- !selection.isCollapsed &&
- element.isSelfOrAncestor(selection.anchorNode) &&
- element.isSelfOrAncestor(selection.focusNode)
+ !selection.isCollapsed &&
+ element.isSelfOrAncestor(selection.anchorNode) &&
+ element.isSelfOrAncestor(selection.focusNode)
)
return;
}
@@ -808,8 +808,8 @@ TreeElement.prototype = {
deselect: function(supressOnDeselect) {
if (
!this.treeOutline ||
- this.treeOutline.selectedTreeElement !== this ||
- !this.selected
+ this.treeOutline.selectedTreeElement !== this ||
+ !this.selected
)
return;
@@ -899,11 +899,11 @@ TreeElement.prototype = {
element = this;
while (
element &&
- !element.root &&
- !(skipUnrevealed
- ? element.revealed() ? element.nextSibling : null
- : element.nextSibling) &&
- element.parent !== stayWithin
+ !element.root &&
+ !(skipUnrevealed
+ ? element.revealed() ? element.nextSibling : null
+ : element.nextSibling) &&
+ element.parent !== stayWithin
) {
if (info) info.depthChange -= 1;
element = element.parent;
@@ -928,9 +928,9 @@ TreeElement.prototype = {
while (
element &&
- (skipUnrevealed
- ? element.revealed() && element.expanded ? element.lastChild() : null
- : element.lastChild())
+ (skipUnrevealed
+ ? element.revealed() && element.expanded ? element.lastChild() : null
+ : element.lastChild())
) {
if (!dontPopulate) element._populateIfNeeded();
element = skipUnrevealed
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui_lazy/DataGrid.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui_lazy/DataGrid.js
index 797233f..2484c5d 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui_lazy/DataGrid.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui_lazy/DataGrid.js
@@ -360,8 +360,8 @@ WebInspector.DataGrid.prototype = {
var firstEditableColumn = this._nextEditableColumn(-1);
if (
currentEditingNode.isCreationNode &&
- cellIndex === firstEditableColumn &&
- !wasChange
+ cellIndex === firstEditableColumn &&
+ !wasChange
)
return;
@@ -474,9 +474,9 @@ WebInspector.DataGrid.prototype = {
sortOrder: function() {
if (
!this._sortColumnCell ||
- this._sortColumnCell.classList.contains(
- WebInspector.DataGrid.Order.Ascending,
- )
+ this._sortColumnCell.classList.contains(
+ WebInspector.DataGrid.Order.Ascending,
+ )
)
return WebInspector.DataGrid.Order.Ascending;
if (
@@ -770,10 +770,10 @@ WebInspector.DataGrid.prototype = {
_keyDown: function(event) {
if (
!this.selectedNode ||
- event.shiftKey ||
- event.metaKey ||
- event.ctrlKey ||
- this._editing
+ event.shiftKey ||
+ event.metaKey ||
+ event.ctrlKey ||
+ this._editing
)
return;
@@ -876,8 +876,8 @@ WebInspector.DataGrid.prototype = {
var cell = event.target.enclosingNodeOrSelfWithNodeName('th');
if (
!cell ||
- cell.columnIdentifier === undefined ||
- !cell.classList.contains('sortable')
+ cell.columnIdentifier === undefined ||
+ !cell.classList.contains('sortable')
)
return;
@@ -940,8 +940,8 @@ WebInspector.DataGrid.prototype = {
if (
gridNode &&
- gridNode.selectable &&
- !gridNode.isEventWithinDisclosureTriangle(event)
+ gridNode.selectable &&
+ !gridNode.isEventWithinDisclosureTriangle(event)
) {
if (this._editCallback) {
if (gridNode === this.creationNode)
@@ -1555,9 +1555,9 @@ WebInspector.DataGridNode.prototype = {
node = this;
while (
node &&
- !node._isRoot &&
- !(!skipHidden || node.revealed ? node.nextSibling : null) &&
- node.parent !== stayWithin
+ !node._isRoot &&
+ !(!skipHidden || node.revealed ? node.nextSibling : null) &&
+ node.parent !== stayWithin
) {
if (info) info.depthChange -= 1;
node = node.parent;
@@ -1578,9 +1578,9 @@ WebInspector.DataGridNode.prototype = {
while (
node &&
- (!skipHidden || node.revealed && node.expanded
- ? node.children[node.children.length - 1]
- : null)
+ (!skipHidden || node.revealed && node.expanded
+ ? node.children[node.children.length - 1]
+ : null)
) {
if (!dontPopulate && node.hasChildren) node.populate();
node = !skipHidden || node.revealed && node.expanded
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui_lazy/FlameChart.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui_lazy/FlameChart.js
index 0c31997..aaee86b 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui_lazy/FlameChart.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui_lazy/FlameChart.js
@@ -468,7 +468,7 @@ WebInspector.FlameChart.prototype = {
var timelineData = this._dataProvider.timelineData();
if (
timelineData !== this._rawTimelineData ||
- timelineData.entryStartTimes.length !== this._rawTimelineDataLength
+ timelineData.entryStartTimes.length !== this._rawTimelineDataLength
)
this._processTimelineData(timelineData);
return this._rawTimelineData;
@@ -499,9 +499,7 @@ WebInspector.FlameChart.prototype = {
if (y < this._vScrollElement.scrollTop) this._vScrollElement.scrollTop = y;
else if (
y >
- this._vScrollElement.scrollTop +
- this._offsetHeight +
- this._barHeightDelta
+ this._vScrollElement.scrollTop + this._offsetHeight + this._barHeightDelta
)
this._vScrollElement.scrollTop = y -
this._offsetHeight -
@@ -528,9 +526,9 @@ WebInspector.FlameChart.prototype = {
setWindowTimes: function(startTime, endTime) {
if (
this._muteAnimation ||
- this._timeWindowLeft === 0 ||
- this._timeWindowRight === Infinity ||
- startTime === 0 && endTime === Infinity
+ this._timeWindowLeft === 0 ||
+ this._timeWindowRight === Infinity ||
+ startTime === 0 && endTime === Infinity
) {
// Initial setup.
this._timeWindowLeft = startTime;
@@ -1081,7 +1079,7 @@ WebInspector.FlameChart.prototype = {
context.rect(barX, barY, barWidth, barHeight - 1);
if (
barWidth > minTextWidth ||
- this._dataProvider.forceDecoration(entryIndex)
+ this._dataProvider.forceDecoration(entryIndex)
)
titleIndices[nextTitleIndex++] = entryIndex;
}
@@ -1214,7 +1212,7 @@ WebInspector.FlameChart.prototype = {
// Assign a trasparent color if the flow is small enough or if the previous color was a transparent color.
if (
endX - startX < minimumFlowDistancePx + fadeColorsRange ||
- colorIndex !== color.length - 1
+ colorIndex !== color.length - 1
) {
colorIndex = Math.min(
fadeColorsRange - 1,
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui_lazy/OverviewGrid.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui_lazy/OverviewGrid.js
index ef32d11..0868503 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui_lazy/OverviewGrid.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui_lazy/OverviewGrid.js
@@ -341,7 +341,7 @@ WebInspector.OverviewGrid.Window.prototype = {
) {
if (
this._parentElement.clientWidth - window.end >
- WebInspector.OverviewGrid.MinSelectableSize
+ WebInspector.OverviewGrid.MinSelectableSize
)
window.end = window.start + WebInspector.OverviewGrid.MinSelectableSize;
else
@@ -391,8 +391,8 @@ WebInspector.OverviewGrid.Window.prototype = {
end = this._parentElement.clientWidth;
else if (
end <
- this._leftResizeElement.offsetLeft +
- WebInspector.OverviewGrid.MinSelectableSize
+ this._leftResizeElement.offsetLeft +
+ WebInspector.OverviewGrid.MinSelectableSize
)
end = this._leftResizeElement.offsetLeft +
WebInspector.OverviewGrid.MinSelectableSize;
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/workspace/SearchConfig.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/workspace/SearchConfig.js
index 60578f6..53022d2 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/workspace/SearchConfig.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/workspace/SearchConfig.js
@@ -126,7 +126,7 @@ WebInspector.SearchConfig.prototype = {
for (var i = 0; i < this._fileRegexQueries.length; ++i) {
if (
!!filePath.match(this._fileRegexQueries[i].regex) ===
- this._fileRegexQueries[i].isNegative
+ this._fileRegexQueries[i].isNegative
)
return false;
}
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/workspace/UISourceCode.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/workspace/UISourceCode.js
index cb5dab2..4894baa 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/workspace/UISourceCode.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/workspace/UISourceCode.js
@@ -276,7 +276,7 @@ WebInspector.UISourceCode.prototype = {
}
if (
typeof this._lastAcceptedContent === 'string' &&
- this._lastAcceptedContent === updatedContent
+ this._lastAcceptedContent === updatedContent
) {
this._terminateContentCheck();
return;
@@ -367,7 +367,7 @@ WebInspector.UISourceCode.prototype = {
save: function(forceSaveAs) {
if (
this.project().type() === WebInspector.projectTypes.FileSystem ||
- this.project().type() === WebInspector.projectTypes.Snippets
+ this.project().type() === WebInspector.projectTypes.Snippets
) {
this.commitWorkingCopy();
return;
@@ -385,8 +385,8 @@ WebInspector.UISourceCode.prototype = {
hasUnsavedCommittedChanges: function() {
if (
this._savedWithFileManager ||
- this.project().canSetFileContent() ||
- this._project.isServiceProject()
+ this.project().canSetFileContent() ||
+ this._project.isServiceProject()
)
return false;
if (this._project.workspace().hasResourceContentTrackingExtensions())
diff --git a/pkg/nuclide-debugger/lib/Bridge.js b/pkg/nuclide-debugger/lib/Bridge.js
index 3fcabba..a959562 100644
--- a/pkg/nuclide-debugger/lib/Bridge.js
+++ b/pkg/nuclide-debugger/lib/Bridge.js
@@ -165,14 +165,22 @@ export default class Bridge {
}
}
_handleExpressionEvaluationResponse(
- response: ExpressionResult & {id: number},
+ response:
+ & ExpressionResult
+ & {
+ id: number,
+ },
): void {
this._debuggerModel
.getActions()
.receiveExpressionEvaluationResponse(response.id, response);
}
_handleGetPropertiesResponse(
- response: GetPropertiesResult & {id: number},
+ response:
+ & GetPropertiesResult
+ & {
+ id: number,
+ },
): void {
this._debuggerModel
.getActions()
@@ -288,7 +296,10 @@ export default class Bridge {
this._debuggerModel.getActions().clearInterface();
}
_setSelectedCallFrameLine(
- options: ?{sourceURL: string, lineNumber: number},
+ options: ?{
+ sourceURL: string,
+ lineNumber: number,
+ },
): void {
this._debuggerModel.getActions().setSelectedCallFrameLine(options);
}
@@ -301,7 +312,11 @@ export default class Bridge {
.openSourceLocation(options.sourceURL, options.lineNumber);
}
_handleStopThreadSwitch(
- options: ?{sourceURL: string, lineNumber: number, message: string},
+ options: ?{
+ sourceURL: string,
+ lineNumber: number,
+ message: string,
+ },
) {
if (options == null) {
return;
diff --git a/pkg/nuclide-debugger/lib/DebuggerActions.js b/pkg/nuclide-debugger/lib/DebuggerActions.js
index 42c3fec..a4c9295 100644
--- a/pkg/nuclide-debugger/lib/DebuggerActions.js
+++ b/pkg/nuclide-debugger/lib/DebuggerActions.js
@@ -101,7 +101,7 @@ export default class DebuggerActions {
}
if (
processInfo.getServiceName() !== 'hhvm' ||
- (await passesGK(GK_DEBUGGER_REQUEST_SENDER))
+ (await passesGK(GK_DEBUGGER_REQUEST_SENDER))
) {
const customControlButtons = processInfo.customControlButtons();
if (customControlButtons.length > 0) {
diff --git a/pkg/nuclide-debugger/lib/ThreadStore.js b/pkg/nuclide-debugger/lib/ThreadStore.js
index 9d30a80..8ec0bda 100644
--- a/pkg/nuclide-debugger/lib/ThreadStore.js
+++ b/pkg/nuclide-debugger/lib/ThreadStore.js
@@ -94,8 +94,8 @@ export default class ThreadStore {
// TODO(jonaldislarry): add deleteThread API so that this stop reason checking is not needed.
if (
thread.stopReason === 'end' ||
- thread.stopReason === 'error' ||
- thread.stopReason === 'stopped'
+ thread.stopReason === 'error' ||
+ thread.stopReason === 'stopped'
) {
this._threadMap.delete(Number(thread.id));
} else {
diff --git a/pkg/nuclide-debugger/lib/main.js b/pkg/nuclide-debugger/lib/main.js
index d2193f4..4ea4b19 100644
--- a/pkg/nuclide-debugger/lib/main.js
+++ b/pkg/nuclide-debugger/lib/main.js
@@ -180,7 +180,7 @@ class Activation {
}
if (
nuclideUri.getHostname(debuggeeTargetUri) ===
- connection.getRemoteHostname()
+ connection.getRemoteHostname()
) {
this._model.getActions().stopDebugging();
}
diff --git a/pkg/nuclide-debugger/lib/normalizeRemoteObjectValue.js b/pkg/nuclide-debugger/lib/normalizeRemoteObjectValue.js
index 3050410..de2e032 100644
--- a/pkg/nuclide-debugger/lib/normalizeRemoteObjectValue.js
+++ b/pkg/nuclide-debugger/lib/normalizeRemoteObjectValue.js
@@ -25,7 +25,7 @@ export function normalizeRemoteObjectValue(
const underscoreField = `_${field}`;
if (
remoteObject.hasOwnProperty(underscoreField) &&
- remoteObject[underscoreField] != null
+ remoteObject[underscoreField] != null
) {
modifiedProperties[field] = String(remoteObject[underscoreField]);
} else if (
diff --git a/pkg/nuclide-debugger/scripts/App.js b/pkg/nuclide-debugger/scripts/App.js
index 639db9f..0b6249a 100644
--- a/pkg/nuclide-debugger/scripts/App.js
+++ b/pkg/nuclide-debugger/scripts/App.js
@@ -29,7 +29,7 @@ XMLHttpRequest.prototype.open = (function(original) {
for (let i = 0; i < unmappedUrlPrefixes.length; i++) {
if (
url.startsWith(unmappedUrlPrefixes[i]) ||
- url.startsWith('./' + unmappedUrlPrefixes[i])
+ url.startsWith('./' + unmappedUrlPrefixes[i])
) {
newUrl = url;
}
diff --git a/pkg/nuclide-debugger/scripts/nuclide_bridge/NuclideBridge.js b/pkg/nuclide-debugger/scripts/nuclide_bridge/NuclideBridge.js
index e00a4e8..6705f6b 100644
--- a/pkg/nuclide-debugger/scripts/nuclide_bridge/NuclideBridge.js
+++ b/pkg/nuclide-debugger/scripts/nuclide_bridge/NuclideBridge.js
@@ -393,7 +393,8 @@ class NuclideBridge {
if (runtimeAgent == null) {
return;
}
- runtimeAgent.getProperties(objectId, false, false, false, ( // ownProperties // accessorPropertiesOnly // generatePreview
+ runtimeAgent.getProperties(objectId, false, false, false, (
+ // ownProperties // accessorPropertiesOnly // generatePreview
error,
properties,
internalProperties,
diff --git a/pkg/nuclide-debugger/spec/utils.js b/pkg/nuclide-debugger/spec/utils.js
index 7ad8777..4fa3a57 100644
--- a/pkg/nuclide-debugger/spec/utils.js
+++ b/pkg/nuclide-debugger/spec/utils.js
@@ -38,7 +38,7 @@ export function getBreakpointDecorationInRow(
const {gutterName, item} = decorations[i].getProperties();
if (
gutterName === 'nuclide-breakpoint' &&
- item.className === 'nuclide-debugger-breakpoint-icon'
+ item.className === 'nuclide-debugger-breakpoint-icon'
) {
return decorations[i];
}
diff --git a/pkg/nuclide-diagnostics-store/lib/LinterAdapter.js b/pkg/nuclide-diagnostics-store/lib/LinterAdapter.js
index 13542c5..a71497a 100644
--- a/pkg/nuclide-diagnostics-store/lib/LinterAdapter.js
+++ b/pkg/nuclide-diagnostics-store/lib/LinterAdapter.js
@@ -184,7 +184,7 @@ export class LinterAdapter {
if (
this._provider.invalidateOnClose &&
- !this._onDestroyDisposables.has(buffer)
+ !this._onDestroyDisposables.has(buffer)
) {
const disposable = buffer.onDidDestroy(() => {
this._invalidateBuffer(buffer);
@@ -211,7 +211,7 @@ export class LinterAdapter {
const activeTextEditor = atom.workspace.getActiveTextEditor();
if (
activeTextEditor &&
- !nuclideUri.isBrokenDeserializedUri(activeTextEditor.getPath())
+ !nuclideUri.isBrokenDeserializedUri(activeTextEditor.getPath())
) {
const matchesGrammar = this._provider.grammarScopes.indexOf(
activeTextEditor.getGrammar().scopeName,
diff --git a/pkg/nuclide-diagnostics-ui/lib/DiagnosticsPanel.js b/pkg/nuclide-diagnostics-ui/lib/DiagnosticsPanel.js
index a0ab4ac..7c117ee 100644
--- a/pkg/nuclide-diagnostics-ui/lib/DiagnosticsPanel.js
+++ b/pkg/nuclide-diagnostics-ui/lib/DiagnosticsPanel.js
@@ -81,6 +81,7 @@ export default class DiagnosticsPanel extends React.Component {
<span className="inline-block highlight-info">
nuclide-diagnostics is not compatible with the linter package. We recommend that
+
you&nbsp;
<a onClick={this.props.disableLinter}>
disable the linter package
diff --git a/pkg/nuclide-diff-view/lib/DiffPublishView.js b/pkg/nuclide-diff-view/lib/DiffPublishView.js
index e3ef430..591a1dd 100644
--- a/pkg/nuclide-diff-view/lib/DiffPublishView.js
+++ b/pkg/nuclide-diff-view/lib/DiffPublishView.js
@@ -89,7 +89,7 @@ export default class DiffPublishView extends React.Component {
componentDidUpdate(prevProps: Props): void {
if (
this.props.message !== prevProps.message ||
- this.props.publishModeState !== prevProps.publishModeState
+ this.props.publishModeState !== prevProps.publishModeState
) {
this.__populatePublishText();
}
diff --git a/pkg/nuclide-diff-view/lib/diff-utils.js b/pkg/nuclide-diff-view/lib/diff-utils.js
index 1127651..2663be5 100644
--- a/pkg/nuclide-diff-view/lib/diff-utils.js
+++ b/pkg/nuclide-diff-view/lib/diff-utils.js
@@ -261,8 +261,7 @@ export function computeNavigationSections(
const lineSection = lineSections[i];
if (
lastSection.status === lineSection.status &&
- lastSection.lineNumber + lastSection.lineCount ===
- lineSection.lineNumber
+ lastSection.lineNumber + lastSection.lineCount === lineSection.lineNumber
) {
lastSection.lineCount += 1;
} else {
diff --git a/pkg/nuclide-diff-view/lib/main.js b/pkg/nuclide-diff-view/lib/main.js
index edaa791..5026cf7 100644
--- a/pkg/nuclide-diff-view/lib/main.js
+++ b/pkg/nuclide-diff-view/lib/main.js
@@ -213,8 +213,7 @@ class Activation {
const rootEpic = (actions, store) => combineEpics(...epics)(
actions,
store,
- )// Log errors and continue.
- .catch((error, stream) => {
+ ).catch((error, stream) => {
getLogger().error('Diff View Epics Error:', error);
return stream;
});
@@ -438,13 +437,13 @@ class Activation {
const {viewMode, commit: {mode: commitMode}} = this._store.getState();
if (
diffEntityOptions.viewMode != null &&
- diffEntityOptions.viewMode !== viewMode
+ diffEntityOptions.viewMode !== viewMode
) {
this._actionCreators.setViewMode(diffEntityOptions.viewMode);
}
if (
diffEntityOptions.commitMode != null &&
- diffEntityOptions.commitMode !== commitMode
+ diffEntityOptions.commitMode !== commitMode
) {
this._actionCreators.setCommitMode(diffEntityOptions.commitMode);
}
@@ -508,6 +507,7 @@ class Activation {
<span>
Launches an editable side-by-side compare view across mercurial dirty and commits
+
changes, allowing committing and pushing changes to phabricator.
</span>
),
diff --git a/pkg/nuclide-diff-view/lib/redux/Epics.js b/pkg/nuclide-diff-view/lib/redux/Epics.js
index ae58ead..eba5033 100644
--- a/pkg/nuclide-diff-view/lib/redux/Epics.js
+++ b/pkg/nuclide-diff-view/lib/redux/Epics.js
@@ -812,7 +812,7 @@ export function commit(
pipeProcessMessagesToConsole(mode, publishUpdates, processMessage);
if (
!consoleShown &&
- SHOW_CONSOLE_ON_PROCESS_EVENTS.includes(processMessage.kind)
+ SHOW_CONSOLE_ON_PROCESS_EVENTS.includes(processMessage.kind)
) {
dispatchConsoleToggle(true);
consoleShown = true;
diff --git a/pkg/nuclide-diff-view/lib/utils.js b/pkg/nuclide-diff-view/lib/utils.js
index 4a959f5..ab07f89 100644
--- a/pkg/nuclide-diff-view/lib/utils.js
+++ b/pkg/nuclide-diff-view/lib/utils.js
@@ -174,19 +174,14 @@ export async function promptToCleanDirtyChanges(
buttons: ['Cancel', 'Add', 'Allow Untracked'],
});
getLogger().info('Untracked changes choice:', untrackedChoice);
- if (untrackedChoice === 0)
- /* Cancel */ {
- return null;
- }
- else if (untrackedChoice === 1)
- /* Add */ {
- await repository.addAll(Array.from(untrackedChanges.keys()));
- shouldAmend = true;
- }
- else if (untrackedChoice === 2)
- /* Allow Untracked */ {
- allowUntracked = true;
- }
+ if (untrackedChoice === 0) {
+ /* Cancel */ return null;
+ } else if (untrackedChoice === 1) {
+ /* Add */ await repository.addAll(Array.from(untrackedChanges.keys()));
+ shouldAmend = true;
+ } else if (untrackedChoice === 2) {
+ /* Allow Untracked */ allowUntracked = true;
+ }
}
const revertableChanges: Map<NuclideUri, FileChangeStatusValue> = new Map(
Array.from(dirtyFileChanges.entries()).filter(
@@ -200,23 +195,18 @@ export async function promptToCleanDirtyChanges(
buttons: ['Cancel', 'Revert', 'Amend'],
});
getLogger().info('Dirty changes clean choice:', cleanChoice);
- if (cleanChoice === 0)
- /* Cancel */ {
- return null;
- }
- else if (cleanChoice === 1)
- /* Revert */ {
- const canRevertFilePaths: Array<NuclideUri> = Array.from(
- dirtyFileChanges.entries(),
- )
- .filter(fileChange => fileChange[1] !== FileChangeStatus.UNTRACKED)
- .map(fileChange => fileChange[0]);
- await repository.revert(canRevertFilePaths);
- }
- else if (cleanChoice === 2)
- /* Amend */ {
- shouldAmend = true;
- }
+ if (cleanChoice === 0) {
+ /* Cancel */ return null;
+ } else if (cleanChoice === 1) {
+ /* Revert */ const canRevertFilePaths: Array<NuclideUri> = Array.from(
+ dirtyFileChanges.entries(),
+ )
+ .filter(fileChange => fileChange[1] !== FileChangeStatus.UNTRACKED)
+ .map(fileChange => fileChange[0]);
+ await repository.revert(canRevertFilePaths);
+ } else if (cleanChoice === 2) {
+ /* Amend */ shouldAmend = true;
+ }
}
if (shouldAmend) {
await amendWithErrorOnFailure(
@@ -290,7 +280,7 @@ export function getSelectedFileChanges(
if (
diffOption === DiffOption.DIRTY ||
- diffOption === DiffOption.COMPARE_COMMIT && compareCommitId == null
+ diffOption === DiffOption.COMPARE_COMMIT && compareCommitId == null
) {
return Observable.of(dirtyFileChanges);
}
diff --git a/pkg/nuclide-distraction-free-mode/lib/BuiltinProviders.js b/pkg/nuclide-distraction-free-mode/lib/BuiltinProviders.js
index 3868a98..7de5c2c 100644
--- a/pkg/nuclide-distraction-free-mode/lib/BuiltinProviders.js
+++ b/pkg/nuclide-distraction-free-mode/lib/BuiltinProviders.js
@@ -41,8 +41,8 @@ class FindAndReplaceProvider {
const paneContainer = paneElem.parentElement;
if (
paneContainer != null &&
- paneContainer.style != null &&
- paneContainer.style.display != null
+ paneContainer.style != null &&
+ paneContainer.style.display != null
) {
const display = paneContainer.style.display;
if (display !== 'none') {
diff --git a/pkg/nuclide-distraction-free-mode/lib/DistractionFreeMode.js b/pkg/nuclide-distraction-free-mode/lib/DistractionFreeMode.js
index f23e642..16596d2 100644
--- a/pkg/nuclide-distraction-free-mode/lib/DistractionFreeMode.js
+++ b/pkg/nuclide-distraction-free-mode/lib/DistractionFreeMode.js
@@ -47,7 +47,7 @@ export class DistractionFreeMode {
this._providers.add(provider);
if (
this._deserializationState != null &&
- this._deserializationState.has(provider.name)
+ this._deserializationState.has(provider.name)
) {
this._addToRestoreState(provider);
}
diff --git a/pkg/nuclide-file-tree/components/FileTreeEntryComponent.js b/pkg/nuclide-file-tree/components/FileTreeEntryComponent.js
index fe79db1..2ddd81c 100644
--- a/pkg/nuclide-file-tree/components/FileTreeEntryComponent.js
+++ b/pkg/nuclide-file-tree/components/FileTreeEntryComponent.js
@@ -450,7 +450,7 @@ export class FileTreeEntryComponent extends React.Component {
function getSelectionMode(event: SyntheticMouseEvent): SelectionMode {
if (
os.platform() === 'darwin' && event.metaKey && event.button === 0 ||
- os.platform() !== 'darwin' && event.ctrlKey && event.button === 0
+ os.platform() !== 'darwin' && event.ctrlKey && event.button === 0
) {
return 'multi-select';
}
diff --git a/pkg/nuclide-file-tree/components/FileTreeSidebarComponent.js b/pkg/nuclide-file-tree/components/FileTreeSidebarComponent.js
index 797a6a6..01281c5 100644
--- a/pkg/nuclide-file-tree/components/FileTreeSidebarComponent.js
+++ b/pkg/nuclide-file-tree/components/FileTreeSidebarComponent.js
@@ -317,7 +317,7 @@ export default class FileTreeSidebarComponent extends React.Component {
if (
shouldRenderToolbar !== this.state.shouldRenderToolbar ||
- openFilesUris !== this.state.openFilesUris
+ openFilesUris !== this.state.openFilesUris
) {
this.setState({shouldRenderToolbar, openFilesUris});
} else {
@@ -368,8 +368,8 @@ export default class FileTreeSidebarComponent extends React.Component {
toggle(activeEditors, this._showOpenConfigValues).subscribe(editor => {
if (
editor == null ||
- typeof editor.getPath !== 'function' ||
- editor.getPath() == null
+ typeof editor.getPath !== 'function' ||
+ editor.getPath() == null
) {
this.setState({activeUri: null});
return;
diff --git a/pkg/nuclide-file-tree/lib/FileTreeController.js b/pkg/nuclide-file-tree/lib/FileTreeController.js
index eb1f27f..1cb2183 100644
--- a/pkg/nuclide-file-tree/lib/FileTreeController.js
+++ b/pkg/nuclide-file-tree/lib/FileTreeController.js
@@ -293,8 +293,8 @@ export default class FileTreeController {
const editorElement = ((event.currentTarget: any): atom$TextEditorElement);
if (
editorElement == null ||
- typeof editorElement.getModel !== 'function' ||
- !isValidTextEditor(editorElement.getModel())
+ typeof editorElement.getModel !== 'function' ||
+ !isValidTextEditor(editorElement.getModel())
) {
return;
}
@@ -450,8 +450,8 @@ export default class FileTreeController {
const firstSelectedNode = selectedNodes.first();
if (
selectedNodes.size === 1 &&
- !firstSelectedNode.isRoot &&
- !(firstSelectedNode.isContainer && firstSelectedNode.isExpanded)
+ !firstSelectedNode.isRoot &&
+ !(firstSelectedNode.isContainer && firstSelectedNode.isExpanded)
) {
/*
* Select the parent of the selection if the following criteria are met:
@@ -628,8 +628,8 @@ export default class FileTreeController {
// is not part of any other open root, then close the file.
if (
path != null &&
- path.startsWith(rootNode.uri) &&
- roots.filter(root => path.startsWith(root)).length === 1
+ path.startsWith(rootNode.uri) &&
+ roots.filter(root => path.startsWith(root)).length === 1
) {
return !atom.workspace.paneForURI(path).destroyItem(editor);
}
diff --git a/pkg/nuclide-file-tree/lib/FileTreeNode.js b/pkg/nuclide-file-tree/lib/FileTreeNode.js
index 8d9fdfd..ea00e79 100644
--- a/pkg/nuclide-file-tree/lib/FileTreeNode.js
+++ b/pkg/nuclide-file-tree/lib/FileTreeNode.js
@@ -624,7 +624,7 @@ export class FileTreeNode {
}
if (
props.isDragHovered !== undefined &&
- this.isDragHovered !== props.isDragHovered
+ this.isDragHovered !== props.isDragHovered
) {
return false;
}
@@ -649,27 +649,27 @@ export class FileTreeNode {
}
if (
props.subscription !== undefined &&
- this.subscription !== props.subscription
+ this.subscription !== props.subscription
) {
return false;
}
if (
props.highlightedText !== undefined &&
- this.highlightedText !== props.highlightedText
+ this.highlightedText !== props.highlightedText
) {
return false;
}
if (
props.matchesFilter !== undefined &&
- this.matchesFilter !== props.matchesFilter
+ this.matchesFilter !== props.matchesFilter
) {
return false;
}
if (
props.children !== undefined &&
- props.children !== this.children &&
- !Immutable.is(this.children, props.children)
+ props.children !== this.children &&
+ !Immutable.is(this.children, props.children)
) {
return false;
}
diff --git a/pkg/nuclide-file-tree/lib/FileTreeStore.js b/pkg/nuclide-file-tree/lib/FileTreeStore.js
index b4f0db8..792a940 100644
--- a/pkg/nuclide-file-tree/lib/FileTreeStore.js
+++ b/pkg/nuclide-file-tree/lib/FileTreeStore.js
@@ -737,8 +737,8 @@ export class FileTreeStore {
const status = vcsStatuses[uri];
if (
status === StatusCodeNumber.MODIFIED ||
- status === StatusCodeNumber.ADDED ||
- status === StatusCodeNumber.REMOVED
+ status === StatusCodeNumber.ADDED ||
+ status === StatusCodeNumber.REMOVED
) {
try {
// An invalid URI might cause an exception to be thrown
@@ -1506,8 +1506,8 @@ export class FileTreeStore {
let nextNode = rangeNode;
while (
nextNode != null &&
- nextNode !== anchorNode &&
- nextNode.isSelected === false
+ nextNode !== anchorNode &&
+ nextNode.isSelected === false
) {
nextNode = getNextNode(nextNode);
}
diff --git a/pkg/nuclide-file-tree/lib/MemoizedFieldsDeriver.js b/pkg/nuclide-file-tree/lib/MemoizedFieldsDeriver.js
index 2900c54..e001446 100644
--- a/pkg/nuclide-file-tree/lib/MemoizedFieldsDeriver.js
+++ b/pkg/nuclide-file-tree/lib/MemoizedFieldsDeriver.js
@@ -198,12 +198,12 @@ export class MemoizedFieldsDeriver {
if (
store.isIgnored !== isIgnored ||
- store.excludeVcsIgnoredPaths !== conf.excludeVcsIgnoredPaths ||
- store.hideIgnoredNames !== conf.hideIgnoredNames ||
- store.ignoredPatterns !== conf.ignoredPatterns ||
- store.isEditingWorkingSet !== conf.isEditingWorkingSet ||
- store.containedInWorkingSet !== containedInWorkingSet ||
- store.containedInOpenFilesWorkingSet !== containedInOpenFilesWorkingSet
+ store.excludeVcsIgnoredPaths !== conf.excludeVcsIgnoredPaths ||
+ store.hideIgnoredNames !== conf.hideIgnoredNames ||
+ store.ignoredPatterns !== conf.ignoredPatterns ||
+ store.isEditingWorkingSet !== conf.isEditingWorkingSet ||
+ store.containedInWorkingSet !== containedInWorkingSet ||
+ store.containedInOpenFilesWorkingSet !== containedInOpenFilesWorkingSet
) {
store.isIgnored = isIgnored;
store.excludeVcsIgnoredPaths = conf.excludeVcsIgnoredPaths;
@@ -217,7 +217,7 @@ export class MemoizedFieldsDeriver {
store.shouldBeShown = false;
} else if (
store.hideIgnoredNames &&
- store.ignoredPatterns.some(p => p.match(this._uri))
+ store.ignoredPatterns.some(p => p.match(this._uri))
) {
store.shouldBeShown = false;
} else if (store.isEditingWorkingSet) {
@@ -239,8 +239,8 @@ export class MemoizedFieldsDeriver {
if (
store.isEditingWorkingSet !== conf.isEditingWorkingSet ||
- store.containedInWorkingSet !== containedInWorkingSet ||
- store.containedInOpenFilesWorkingSet !== containedInOpenFilesWorkingSet
+ store.containedInWorkingSet !== containedInWorkingSet ||
+ store.containedInOpenFilesWorkingSet !== containedInOpenFilesWorkingSet
) {
store.isEditingWorkingSet = conf.isEditingWorkingSet;
store.containedInWorkingSet = containedInWorkingSet;
diff --git a/pkg/nuclide-file-tree/lib/main.js b/pkg/nuclide-file-tree/lib/main.js
index 01dec7b..66e9c20 100644
--- a/pkg/nuclide-file-tree/lib/main.js
+++ b/pkg/nuclide-file-tree/lib/main.js
@@ -361,7 +361,7 @@ export function deactivate() {
// environment the way this package found it.
if (
featureConfig.isFeatureDisabled('nuclide-file-tree') &&
- atom.packages.isPackageDisabled('tree-view')
+ atom.packages.isPackageDisabled('tree-view')
) {
atom.packages.enablePackage('tree-view');
}
diff --git a/pkg/nuclide-file-tree/spec/FileTreeController-spec.js b/pkg/nuclide-file-tree/spec/FileTreeController-spec.js
index de854fb..d51c512 100644
--- a/pkg/nuclide-file-tree/spec/FileTreeController-spec.js
+++ b/pkg/nuclide-file-tree/spec/FileTreeController-spec.js
@@ -232,7 +232,6 @@ describe('FileTreeController', () => {
it('selects the previous nested descendant when one exists', () => {
actions.setSelectedNode(rootKey, dir2Key);
expect(isSelected(rootKey, dir2Key)).toEqual(true);
-
controller._moveUp(); // foo.txt is the previous visible descendant to dir2
expect(isSelected(rootKey, fooTxtKey)).toEqual(true);
});
diff --git a/pkg/nuclide-find-references/lib/FindReferencesModel.js b/pkg/nuclide-find-references/lib/FindReferencesModel.js
index b146e71..44831c6 100644
--- a/pkg/nuclide-find-references/lib/FindReferencesModel.js
+++ b/pkg/nuclide-find-references/lib/FindReferencesModel.js
@@ -149,7 +149,7 @@ class FindReferencesModel {
// Remove references with the same range (happens in C++ with templates)
if (
curGroup.length > 0 &&
- compareReference(curGroup[curGroup.length - 1], ref) !== 0
+ compareReference(curGroup[curGroup.length - 1], ref) !== 0
) {
curGroup.push(ref);
curEndLine = Math.max(curEndLine, range.end.row);
diff --git a/pkg/nuclide-flow-rpc/lib/FlowProcess.js b/pkg/nuclide-flow-rpc/lib/FlowProcess.js
index af29c9a..77b9131 100644
--- a/pkg/nuclide-flow-rpc/lib/FlowProcess.js
+++ b/pkg/nuclide-flow-rpc/lib/FlowProcess.js
@@ -289,9 +289,9 @@ export class FlowProcess {
if (
// Avoid duplicate updates
status !== currentStatus &&
- // Avoid moving the status away from FAILED, to let any existing work die out when the
- // server fails.
- currentStatus !== ServerStatus.FAILED
+ // Avoid moving the status away from FAILED, to let any existing work die out when the
+ // server fails.
+ currentStatus !== ServerStatus.FAILED
) {
this._serverStatus.next(status);
}
diff --git a/pkg/nuclide-flow-rpc/lib/FlowRoot.js b/pkg/nuclide-flow-rpc/lib/FlowRoot.js
index ea39555..e0ab76c 100644
--- a/pkg/nuclide-flow-rpc/lib/FlowRoot.js
+++ b/pkg/nuclide-flow-rpc/lib/FlowRoot.js
@@ -242,8 +242,8 @@ export class FlowRoot {
if (
!activatedManually &&
- !prefixHasDot &&
- replacementPrefix.length < minimumPrefixLength
+ !prefixHasDot &&
+ replacementPrefix.length < minimumPrefixLength
) {
return null;
}
diff --git a/pkg/nuclide-flow-rpc/lib/astToOutline.js b/pkg/nuclide-flow-rpc/lib/astToOutline.js
index 438d0cc..b74fc6c 100644
--- a/pkg/nuclide-flow-rpc/lib/astToOutline.js
+++ b/pkg/nuclide-flow-rpc/lib/astToOutline.js
@@ -277,7 +277,7 @@ function moduleExportsPropertyOutline(property: any): ?OutlineTree {
if (
property.value.type === 'FunctionExpression' ||
- property.value.type === 'ArrowFunctionExpression'
+ property.value.type === 'ArrowFunctionExpression'
) {
return {
tokenizedText: [
@@ -349,7 +349,7 @@ function getFunctionName(callee: any): ?string {
case 'MemberExpression':
if (
callee.object.type !== 'Identifier' ||
- callee.property.type !== 'Identifier'
+ callee.property.type !== 'Identifier'
) {
return null;
}
@@ -431,8 +431,8 @@ function variableDeclaratorOutline(
): ?OutlineTree {
if (
declarator.init != null &&
- (declarator.init.type === 'FunctionExpression' ||
- declarator.init.type === 'ArrowFunctionExpression')
+ (declarator.init.type === 'FunctionExpression' ||
+ declarator.init.type === 'ArrowFunctionExpression')
) {
return functionOutline(declarator.id.name, declarator.init.params, extent);
}
diff --git a/pkg/nuclide-flow-rpc/spec/FlowProcess-spec.js b/pkg/nuclide-flow-rpc/spec/FlowProcess-spec.js
index 83c46b0..81f4f23 100644
--- a/pkg/nuclide-flow-rpc/spec/FlowProcess-spec.js
+++ b/pkg/nuclide-flow-rpc/spec/FlowProcess-spec.js
@@ -63,12 +63,8 @@ describe('FlowProcess', () => {
return checkOutput.call(this, command, args, options);
});
- spyOn(
- processModule,
- 'asyncExecute',
- )// We need this level of indirection to ensure that if fakeCheckOutput
- // is rebound, the new one gets executed.
- .andCallFake((...args) => fakeCheckOutput(...args));
+ spyOn(processModule, 'asyncExecute').andCallFake((...args) =>
+ fakeCheckOutput(...args));
childSpy = {
stdout: {on() {}},
diff --git a/pkg/nuclide-flow/lib/flowMessageToFix.js b/pkg/nuclide-flow/lib/flowMessageToFix.js
index 3ae1150..913af04 100644
--- a/pkg/nuclide-flow/lib/flowMessageToFix.js
+++ b/pkg/nuclide-flow/lib/flowMessageToFix.js
@@ -34,8 +34,8 @@ function unusedSuppressionFix(diagnostic: Diagnostic): ?Fix {
// Automatically remove unused suppressions:
if (
diagnostic.messageComponents.length === 2 &&
- diagnostic.messageComponents[0].descr === 'Error suppressing comment' &&
- diagnostic.messageComponents[1].descr === 'Unused suppression'
+ diagnostic.messageComponents[0].descr === 'Error suppressing comment' &&
+ diagnostic.messageComponents[1].descr === 'Unused suppression'
) {
const oldRange = extractRange(diagnostic.messageComponents[0]);
invariant(oldRange != null);
diff --git a/pkg/nuclide-graphql-language-service/lib/interfaces/getAutocompleteSuggestions.js b/pkg/nuclide-graphql-language-service/lib/interfaces/getAutocompleteSuggestions.js
index 8d26738..742cc2e 100644
--- a/pkg/nuclide-graphql-language-service/lib/interfaces/getAutocompleteSuggestions.js
+++ b/pkg/nuclide-graphql-language-service/lib/interfaces/getAutocompleteSuggestions.js
@@ -121,9 +121,9 @@ export function getAutocompleteSuggestions(
// Input values: Enum and Boolean
if (
kind === 'EnumValue' ||
- kind === 'ListValue' && step === 1 ||
- kind === 'ObjectField' && step === 2 ||
- kind === 'Argument' && step === 2
+ kind === 'ListValue' && step === 1 ||
+ kind === 'ObjectField' && step === 2 ||
+ kind === 'Argument' && step === 2
) {
return getSuggestionsForInputValues(cursor, token, typeInfo);
}
@@ -131,9 +131,9 @@ export function getAutocompleteSuggestions(
// Fragment type conditions
if (
kind === 'TypeCondition' && step === 1 ||
- kind === 'NamedType' &&
- state.prevState != null &&
- state.prevState.kind === 'TypeCondition'
+ kind === 'NamedType' &&
+ state.prevState != null &&
+ state.prevState.kind === 'TypeCondition'
) {
return getSuggestionsForFragmentTypeConditions(
cursor,
@@ -157,11 +157,11 @@ export function getAutocompleteSuggestions(
// Variable definition types
if (
kind === 'VariableDefinition' && step === 2 ||
- kind === 'ListType' && step === 1 ||
- kind === 'NamedType' &&
- state.prevState &&
- (state.prevState.kind === 'VariableDefinition' ||
- state.prevState.kind === 'ListType')
+ kind === 'ListType' && step === 1 ||
+ kind === 'NamedType' &&
+ state.prevState &&
+ (state.prevState.kind === 'VariableDefinition' ||
+ state.prevState.kind === 'ListType')
) {
return getSuggestionsForVariableDefinition(cursor, token, schema);
}
@@ -288,8 +288,7 @@ function getSuggestionsForFragmentSpread(
// Filter down to only the fragments which may exist here.
const relevantFrags = fragments.filter(
- frag => // Only include fragments with known types.
- typeMap[frag.typeCondition.name.value] &&
+ frag => typeMap[frag.typeCondition.name.value] && // Only include fragments with known types.
// Only include fragments which are not cyclic.
!(defState &&
defState.kind === 'FragmentDefinition' &&
diff --git a/pkg/nuclide-graphql-language-service/lib/parser/CharacterStream.js b/pkg/nuclide-graphql-language-service/lib/parser/CharacterStream.js
index 293412d..d436658 100644
--- a/pkg/nuclide-graphql-language-service/lib/parser/CharacterStream.js
+++ b/pkg/nuclide-graphql-language-service/lib/parser/CharacterStream.js
@@ -134,11 +134,11 @@ export default class CharacterStream {
if (match != null) {
if (
typeof pattern === 'string' ||
- match instanceof Array &&
- // String.match returns 'index' property, which flow fails to detect
- // for some reason. The below is a workaround, but an easier solution
- // is just checking if `match.index === 0`
- this._sourceText.startsWith(match[0], this._pos)
+ match instanceof Array &&
+ // String.match returns 'index' property, which flow fails to detect
+ // for some reason. The below is a workaround, but an easier solution
+ // is just checking if `match.index === 0`
+ this._sourceText.startsWith(match[0], this._pos)
) {
if (consume) {
this._start = this._pos;
diff --git a/pkg/nuclide-graphql-language-service/lib/server/GraphQLCache.js b/pkg/nuclide-graphql-language-service/lib/server/GraphQLCache.js
index e0f8acf..5edcb7b 100644
--- a/pkg/nuclide-graphql-language-service/lib/server/GraphQLCache.js
+++ b/pkg/nuclide-graphql-language-service/lib/server/GraphQLCache.js
@@ -130,7 +130,7 @@ export class GraphQLCache {
FragmentSpread(node) {
if (
!referencedFragNames.has(node.name.value) &&
- fragmentDefinitions.get(node.name.value)
+ fragmentDefinitions.get(node.name.value)
) {
asts.add(nullthrows(fragmentDefinitions.get(node.name.value)));
referencedFragNames.add(node.name.value);
@@ -166,7 +166,7 @@ export class GraphQLCache {
filePath: path.join(rootDir, fileInfo.name),
size: fileInfo.size,
mtime: fileInfo.mtime
- // Filter any files with path starting with ExcludeDirs,
+ // Filter any files with path starting with ExcludeDirs,,,
}))
.filter(fileInfo =>
excludeDirs.every(
@@ -204,7 +204,7 @@ export class GraphQLCache {
// Prune the file using the input/excluded directories
if (
!inputDirs.some(dir => name.startsWith(dir)) ||
- excludeDirs.some(dir => name.startsWith(dir))
+ excludeDirs.some(dir => name.startsWith(dir))
) {
return;
}
@@ -222,8 +222,8 @@ export class GraphQLCache {
// Same size/mtime means the file stayed the same
if (
existingFile &&
- existingFile.size === size &&
- existingFile.mtime === mtime
+ existingFile.size === size &&
+ existingFile.mtime === mtime
) {
return;
}
diff --git a/pkg/nuclide-graphql-language-service/lib/utils/Range.js b/pkg/nuclide-graphql-language-service/lib/utils/Range.js
index 8b5e6a0..fb114ca 100644
--- a/pkg/nuclide-graphql-language-service/lib/utils/Range.js
+++ b/pkg/nuclide-graphql-language-service/lib/utils/Range.js
@@ -37,7 +37,7 @@ export class Point {
lessThanOrEqualTo(point: Point): boolean {
if (
this.row < point.row ||
- this.row === point.row && this.column <= point.column
+ this.row === point.row && this.column <= point.column
) {
return true;
}
diff --git a/pkg/nuclide-graphql-language-service/lib/utils/getASTNodeAtPoint.js b/pkg/nuclide-graphql-language-service/lib/utils/getASTNodeAtPoint.js
index 212141b..8eccea7 100644
--- a/pkg/nuclide-graphql-language-service/lib/utils/getASTNodeAtPoint.js
+++ b/pkg/nuclide-graphql-language-service/lib/utils/getASTNodeAtPoint.js
@@ -24,8 +24,8 @@ export function getASTNodeAtPoint(
enter(node) {
if (
node.kind !== 'Name' && // We're usually interested in their parents
- node.loc.start <= offset &&
- offset <= node.loc.end
+ node.loc.start <= offset &&
+ offset <= node.loc.end
) {
nodeContainingPoint = node;
} else {
diff --git a/pkg/nuclide-hack-rpc/lib/HackProcess.js b/pkg/nuclide-hack-rpc/lib/HackProcess.js
index 0f2b9db..f1ca5d8 100644
--- a/pkg/nuclide-hack-rpc/lib/HackProcess.js
+++ b/pkg/nuclide-hack-rpc/lib/HackProcess.js
@@ -229,7 +229,8 @@ processes.observeKeys().subscribe(fileCache => {
fileCache
.observeFileEvents()
.ignoreElements()
- .subscribe(undefined, undefined, () => { // next // error
+ .subscribe(undefined, undefined, () => {
+ // next // error
logger.logInfo('fileCache shutting down.');
closeProcesses(fileCache);
});
@@ -300,7 +301,7 @@ async function createHackProcess(
);
if (
startServerResult.exitCode !== 0 &&
- startServerResult.exitCode !== HACK_SERVER_ALREADY_EXISTS_EXIT_CODE
+ startServerResult.exitCode !== HACK_SERVER_ALREADY_EXISTS_EXIT_CODE
) {
return null;
}
diff --git a/pkg/nuclide-hack-rpc/lib/TypedRegions.js b/pkg/nuclide-hack-rpc/lib/TypedRegions.js
index 7852de9..0cfbb86 100644
--- a/pkg/nuclide-hack-rpc/lib/TypedRegions.js
+++ b/pkg/nuclide-hack-rpc/lib/TypedRegions.js
@@ -95,9 +95,9 @@ export function convertTypedRegionsToCoverageResult(
// Often we'll get contiguous blocks of errors on the same line.
if (
last != null &&
- last.type === type &&
- last.line === line &&
- last.end === column - 1
+ last.type === type &&
+ last.line === line &&
+ last.end === column - 1
) {
// So we just merge them into 1 block.
last.end = endColumn;
diff --git a/pkg/nuclide-health/lib/ui/sections/ActiveHandlesSectionComponent.js b/pkg/nuclide-health/lib/ui/sections/ActiveHandlesSectionComponent.js
index f7a6083..76e5a7a 100644
--- a/pkg/nuclide-health/lib/ui/sections/ActiveHandlesSectionComponent.js
+++ b/pkg/nuclide-health/lib/ui/sections/ActiveHandlesSectionComponent.js
@@ -23,7 +23,7 @@ export default class ActiveHandlesSectionComponent extends React.Component {
render(): React.Element<any> {
if (
!this.props.activeHandlesByType ||
- Object.keys(this.props.activeHandlesByType).length === 0
+ Object.keys(this.props.activeHandlesByType).length === 0
) {
return <div />;
}
diff --git a/pkg/nuclide-hg-conflict-resolver/lib/MercurialConflictDetector.js b/pkg/nuclide-hg-conflict-resolver/lib/MercurialConflictDetector.js
index eb8cfc8..de716c2 100644
--- a/pkg/nuclide-hg-conflict-resolver/lib/MercurialConflictDetector.js
+++ b/pkg/nuclide-hg-conflict-resolver/lib/MercurialConflictDetector.js
@@ -46,7 +46,7 @@ export class MercurialConflictDetector {
.filter(
repository => repository != null && repository.getType() === 'hg',
)
- // Flow doesn't understand the implications of the filter, so we need to cast.,
+ // Flow doesn't understand the implications of the filter, so we need to cast.,,,
): Set<any>);
// Dispose removed projects repositories, if any.
for (const [
diff --git a/pkg/nuclide-hhvm/lib/HhvmToolbar.js b/pkg/nuclide-hhvm/lib/HhvmToolbar.js
index 7bc7a16..804d022 100644
--- a/pkg/nuclide-hhvm/lib/HhvmToolbar.js
+++ b/pkg/nuclide-hhvm/lib/HhvmToolbar.js
@@ -72,7 +72,7 @@ export default class HhvmToolbar extends React.Component {
const store = this.props.projectStore;
if (
store.getDebugMode() === 'script' &&
- !this._isTargetLaunchable(store.getCurrentFilePath())
+ !this._isTargetLaunchable(store.getCurrentFilePath())
) {
store.setDebugMode('webserver');
}
diff --git a/pkg/nuclide-home/lib/HomePaneItem.js b/pkg/nuclide-home/lib/HomePaneItem.js
index 315a54c..b7d2be6 100644
--- a/pkg/nuclide-home/lib/HomePaneItem.js
+++ b/pkg/nuclide-home/lib/HomePaneItem.js
@@ -132,12 +132,10 @@ export default class HomePaneItem extends React.Component {
);
}
- return /* Re-use styles from the Atom welcome pane where possible.*/
- (
- <div className="nuclide-home pane-item padded nuclide-home-containers">
- {containers}
- </div>
- );
+ return; /* Re-use styles from the Atom welcome pane where possible.*/
+ <div className="nuclide-home pane-item padded nuclide-home-containers">
+ {containers}
+ </div>;
}
_handleShowOnStartupChange(checked: boolean): void {
diff --git a/pkg/nuclide-json/lib/NPMHyperclickProvider.js b/pkg/nuclide-json/lib/NPMHyperclickProvider.js
index d6d508a..25f4911 100644
--- a/pkg/nuclide-json/lib/NPMHyperclickProvider.js
+++ b/pkg/nuclide-json/lib/NPMHyperclickProvider.js
@@ -122,9 +122,9 @@ function getDependencyVersion(json: string, range: atom$Range): ?string {
if (
pathToNode != null &&
- pathToNode.length === 2 &&
- DEPENDENCY_PROPERTIES.has(pathToNode[0].key.value) &&
- isValidVersion(pathToNode[1].value)
+ pathToNode.length === 2 &&
+ DEPENDENCY_PROPERTIES.has(pathToNode[0].key.value) &&
+ isValidVersion(pathToNode[1].value)
) {
const valueNode = pathToNode[1].value;
if (isValidVersion(valueNode)) {
diff --git a/pkg/nuclide-language-service/lib/DiagnosticsProvider.js b/pkg/nuclide-language-service/lib/DiagnosticsProvider.js
index 541b6c1..22b4fcd 100644
--- a/pkg/nuclide-language-service/lib/DiagnosticsProvider.js
+++ b/pkg/nuclide-language-service/lib/DiagnosticsProvider.js
@@ -231,7 +231,7 @@ export class FileDiagnosticsProvider<T: LanguageService> {
const activeTextEditor = atom.workspace.getActiveTextEditor();
if (
activeTextEditor &&
- !nuclideUri.isBrokenDeserializedUri(activeTextEditor.getPath())
+ !nuclideUri.isBrokenDeserializedUri(activeTextEditor.getPath())
) {
if (
this._providerBase
diff --git a/pkg/nuclide-logging/lib/config.js b/pkg/nuclide-logging/lib/config.js
index b7f8893..f09ab6c 100644
--- a/pkg/nuclide-logging/lib/config.js
+++ b/pkg/nuclide-logging/lib/config.js
@@ -40,7 +40,7 @@ export async function getServerLogAppenderConfig(): Promise<?Object> {
// 2) or the scribe_cat command is missing.
if (
!(await fsPromise.exists(scribeAppenderPath)) ||
- !(await ScribeProcess.isScribeCatOnPath())
+ !(await ScribeProcess.isScribeCatOnPath())
) {
return null;
}
diff --git a/pkg/nuclide-navigation-stack/lib/NavigationStackController.js b/pkg/nuclide-navigation-stack/lib/NavigationStackController.js
index cfb7455..1ed4d95 100644
--- a/pkg/nuclide-navigation-stack/lib/NavigationStackController.js
+++ b/pkg/nuclide-navigation-stack/lib/NavigationStackController.js
@@ -139,9 +139,9 @@ export class NavigationStackController {
// nav stack entry.
if (
!this._inActivate &&
- this._lastLocation != null &&
- this._lastLocation.editor === editor &&
- this._navigationStack.getCurrentEditor() === editor
+ this._lastLocation != null &&
+ this._lastLocation.editor === editor &&
+ this._navigationStack.getCurrentEditor() === editor
) {
this._navigationStack.attemptUpdate(this._lastLocation);
this._navigationStack.push(getLocationOfEditor(editor));
diff --git a/pkg/nuclide-node-transpiler/lib/inline-invariant-tr.js b/pkg/nuclide-node-transpiler/lib/inline-invariant-tr.js
index e759d6c..240716c 100644
--- a/pkg/nuclide-node-transpiler/lib/inline-invariant-tr.js
+++ b/pkg/nuclide-node-transpiler/lib/inline-invariant-tr.js
@@ -70,7 +70,7 @@ module.exports = context => {
for (const refPath of binding.referencePaths) {
if (
refPath.parentKey !== 'callee' ||
- refPath.parent.type !== 'CallExpression'
+ refPath.parent.type !== 'CallExpression'
) {
removeBinding = false;
continue;
diff --git a/pkg/nuclide-node-transpiler/lib/use-minified-libs-tr.js b/pkg/nuclide-node-transpiler/lib/use-minified-libs-tr.js
index 9cefc8f..300ef75 100644
--- a/pkg/nuclide-node-transpiler/lib/use-minified-libs-tr.js
+++ b/pkg/nuclide-node-transpiler/lib/use-minified-libs-tr.js
@@ -43,9 +43,9 @@ module.exports = context => {
// "require.resolve" is not checked.
if (
node.callee.type === 'Identifier' &&
- node.callee.name === 'require' &&
- node.arguments[0] &&
- node.arguments[0].type === 'StringLiteral'
+ node.callee.name === 'require' &&
+ node.arguments[0] &&
+ node.arguments[0].type === 'StringLiteral'
) {
const source = path.get('arguments.0');
replaceModuleId(this, source);
diff --git a/pkg/nuclide-notifications/lib/main.js b/pkg/nuclide-notifications/lib/main.js
index 528c3df..ccfcd41 100644
--- a/pkg/nuclide-notifications/lib/main.js
+++ b/pkg/nuclide-notifications/lib/main.js
@@ -31,7 +31,7 @@ function proxyToNativeNotification(notification: atom$Notification): void {
// Don't proceed if user only wants 'nativeFriendly' proxied notifications and this isn't one.
if (
!options.nativeFriendly &&
- featureConfig.get('nuclide-notifications.onlyNativeFriendly')
+ featureConfig.get('nuclide-notifications.onlyNativeFriendly')
) {
return;
}
@@ -45,7 +45,7 @@ function proxyToNativeNotification(notification: atom$Notification): void {
function raiseNativeNotification(title: string, body: string): void {
if (
!featureConfig.get('nuclide-notifications.whenFocused') &&
- remote.getCurrentWindow().isFocused()
+ remote.getCurrentWindow().isFocused()
) {
return;
}
diff --git a/pkg/nuclide-nux/lib/NuxManager.js b/pkg/nuclide-nux/lib/NuxManager.js
index 91a3921..e789a4f 100644
--- a/pkg/nuclide-nux/lib/NuxManager.js
+++ b/pkg/nuclide-nux/lib/NuxManager.js
@@ -171,7 +171,7 @@ export class NuxManager {
_handleReadyTour(nuxTour: NuxTour): void {
if (
this._activeNuxTour == null &&
- this._numNuxesDisplayed < NUX_PER_SESSION_LIMIT
+ this._numNuxesDisplayed < NUX_PER_SESSION_LIMIT
) {
this._numNuxesDisplayed++;
this._activeNuxTour = nuxTour;
diff --git a/pkg/nuclide-objc/lib/ObjectiveCBracketBalancer.js b/pkg/nuclide-objc/lib/ObjectiveCBracketBalancer.js
index 3a66a71..e1ac237 100644
--- a/pkg/nuclide-objc/lib/ObjectiveCBracketBalancer.js
+++ b/pkg/nuclide-objc/lib/ObjectiveCBracketBalancer.js
@@ -126,7 +126,7 @@ export default class ObjectiveCBracketBalancer {
if (
currentRowPlusOne !== null &&
- currentRowPlusOne !== closeBracketPosition.row
+ currentRowPlusOne !== closeBracketPosition.row
) {
const targetLine = buffer.lineForRow(currentRowPlusOne);
const targetMatch = /\S/.exec(targetLine);
diff --git a/pkg/nuclide-ocaml-rpc/lib/MerlinService.js b/pkg/nuclide-ocaml-rpc/lib/MerlinService.js
index 59da15f..17781f7 100644
--- a/pkg/nuclide-ocaml-rpc/lib/MerlinService.js
+++ b/pkg/nuclide-ocaml-rpc/lib/MerlinService.js
@@ -43,9 +43,7 @@ export type MerlinOutline = {
export type MerlinCases = [{
start: MerlinPosition,
end: MerlinPosition,
-}, /* this is the content to replace the start-end by. Merlin has an awkawrd API*/
-/* for case analysis.*/
-string];
+} /* for case analysis.*/ /* this is the content to replace the start-end by. Merlin has an awkawrd API*/, string];
export type MerlinOccurrences = Array<{
start: MerlinPosition,
diff --git a/pkg/nuclide-ocaml-rpc/spec/MerlinService-spec.js b/pkg/nuclide-ocaml-rpc/spec/MerlinService-spec.js
index 1ec1d26..066b904 100644
--- a/pkg/nuclide-ocaml-rpc/spec/MerlinService-spec.js
+++ b/pkg/nuclide-ocaml-rpc/spec/MerlinService-spec.js
@@ -126,11 +126,11 @@ describe('MerlinService V 2.3.1', () => {
const merlinService = await getMockedMerlinService(async command => {
if (
command[0] === 'complete' &&
- command[1] === 'prefix' &&
- command[2] === 'FoodTest.' &&
- command[3] === 'at' &&
- command[4].line === 6 &&
- command[4].col === 3
+ command[1] === 'prefix' &&
+ command[2] === 'FoodTest.' &&
+ command[3] === 'at' &&
+ command[4].line === 6 &&
+ command[4].col === 3
) {
return expectedResult;
}
@@ -203,9 +203,9 @@ describe('MerlinService V 2.5', () => {
const merlinService = await getMockedMerlinService(async command => {
if (
command[0] === 'tell' &&
- command[1] === 'start' &&
- command[2] === 'end' &&
- command[3] === content
+ command[1] === 'start' &&
+ command[2] === 'end' &&
+ command[3] === content
) {
return {cursor: {line: 2, col: 0}, marker: false};
}
@@ -264,11 +264,11 @@ describe('MerlinService V 2.5', () => {
const merlinService = await getMockedMerlinService(async command => {
if (
command[0] === 'complete' &&
- command[1] === 'prefix' &&
- command[2] === 'FoodTest.' &&
- command[3] === 'at' &&
- command[4].line === 6 &&
- command[4].col === 3
+ command[1] === 'prefix' &&
+ command[2] === 'FoodTest.' &&
+ command[3] === 'at' &&
+ command[4].line === 6 &&
+ command[4].col === 3
) {
return expectedResult;
}
diff --git a/pkg/nuclide-outline-view/lib/OutlineView.js b/pkg/nuclide-outline-view/lib/OutlineView.js
index 57b34ad..8a84caf 100644
--- a/pkg/nuclide-outline-view/lib/OutlineView.js
+++ b/pkg/nuclide-outline-view/lib/OutlineView.js
@@ -210,11 +210,9 @@ function renderTrees(
if (outlines.length === 0) {
return null;
}
- return /* Add `position: relative;` to let `li.selected` style position itself relative to the list*/
+ return; /* Add `position: relative;` to let `li.selected` style position itself relative to the list*/
/* tree rather than to its container.*/
- (
- <ul className="list-tree" style={{position: 'relative'}}>
- {outlines.map((outline, index) => renderTree(editor, outline, index))}
- </ul>
- );
+ <ul className="list-tree" style={{position: 'relative'}}>
+ {outlines.map((outline, index) => renderTree(editor, outline, index))}
+ </ul>;
}
diff --git a/pkg/nuclide-python/lib/LintHelpers.js b/pkg/nuclide-python/lib/LintHelpers.js
index 470cbb7..f1cc4a3 100644
--- a/pkg/nuclide-python/lib/LintHelpers.js
+++ b/pkg/nuclide-python/lib/LintHelpers.js
@@ -21,8 +21,8 @@ export default class LintHelpers {
const src = editor.getPath();
if (
src == null ||
- !getEnableLinting() ||
- getLintExtensionBlacklist().includes(nuclideUri.extname(src))
+ !getEnableLinting() ||
+ getLintExtensionBlacklist().includes(nuclideUri.extname(src))
) {
return Promise.resolve([]);
}
diff --git a/pkg/nuclide-python/lib/diagnostic-range.js b/pkg/nuclide-python/lib/diagnostic-range.js
index dd547b3..4cf1f4c 100644
--- a/pkg/nuclide-python/lib/diagnostic-range.js
+++ b/pkg/nuclide-python/lib/diagnostic-range.js
@@ -60,7 +60,7 @@ function getModuleNameRange(
}
if (
token.value === 'import' &&
- token.scopes.indexOf('keyword.control.import.python') >= 0
+ token.scopes.indexOf('keyword.control.import.python') >= 0
) {
foundImport = true;
}
diff --git a/pkg/nuclide-quick-open/lib/QuickSelectionComponent.js b/pkg/nuclide-quick-open/lib/QuickSelectionComponent.js
index 037942a..e9c20ad 100644
--- a/pkg/nuclide-quick-open/lib/QuickSelectionComponent.js
+++ b/pkg/nuclide-quick-open/lib/QuickSelectionComponent.js
@@ -209,8 +209,8 @@ export default class QuickSelectionComponent extends React.Component {
}
if (
prevState.selectedItemIndex !== this.state.selectedItemIndex ||
- prevState.selectedService !== this.state.selectedService ||
- prevState.selectedDirectory !== this.state.selectedDirectory
+ prevState.selectedService !== this.state.selectedService ||
+ prevState.selectedDirectory !== this.state.selectedDirectory
) {
this._updateScrollPosition();
}
@@ -337,7 +337,7 @@ export default class QuickSelectionComponent extends React.Component {
// Otherwise, refocus the input box.
if (
event.target !== this.refs.modal &&
- !this.refs.modal.contains(event.target)
+ !this.refs.modal.contains(event.target)
) {
this.props.onCancellation();
} else {
@@ -375,8 +375,8 @@ export default class QuickSelectionComponent extends React.Component {
() => {
if (
!this.state.hasUserSelection &&
- topProviderName != null &&
- this.state.resultsByService[topProviderName] != null
+ topProviderName != null &&
+ this.state.resultsByService[topProviderName] != null
) {
const topProviderResults = this.state.resultsByService[
topProviderName
@@ -601,11 +601,11 @@ export default class QuickSelectionComponent extends React.Component {
): ?FileResult {
if (
itemIndex === -1 ||
- !this.state.resultsByService[serviceName] ||
- !this.state.resultsByService[serviceName].results[directory] ||
- !this.state.resultsByService[serviceName].results[directory].results[
- itemIndex
- ]
+ !this.state.resultsByService[serviceName] ||
+ !this.state.resultsByService[serviceName].results[directory] ||
+ !this.state.resultsByService[serviceName].results[directory].results[
+ itemIndex
+ ]
) {
return null;
}
diff --git a/pkg/nuclide-quick-open/lib/main.js b/pkg/nuclide-quick-open/lib/main.js
index 767c5d7..2fa129b 100644
--- a/pkg/nuclide-quick-open/lib/main.js
+++ b/pkg/nuclide-quick-open/lib/main.js
@@ -147,8 +147,8 @@ class Activation {
});
if (
this._searchPanel != null &&
- this._searchPanel.isVisible() &&
- this._searchResultManager.getActiveProviderName() === newProviderName
+ this._searchPanel.isVisible() &&
+ this._searchResultManager.getActiveProviderName() === newProviderName
) {
this._closeSearchPanel();
} else {
@@ -202,7 +202,7 @@ class Activation {
searchComponent.setInputValue(initialQuery);
} else if (
!searchPanel.isVisible() &&
- featureConfig.get('nuclide-quick-open.useSelection')
+ featureConfig.get('nuclide-quick-open.useSelection')
) {
// Only on initial render should you use the current selection as a query.
const editor = atom.workspace.getActiveTextEditor();
diff --git a/pkg/nuclide-react-inspector/VendorLib/dev-tools/build/backend.js b/pkg/nuclide-react-inspector/VendorLib/dev-tools/build/backend.js
index dc48757..62a0680 100644
--- a/pkg/nuclide-react-inspector/VendorLib/dev-tools/build/backend.js
+++ b/pkg/nuclide-react-inspector/VendorLib/dev-tools/build/backend.js
@@ -572,7 +572,7 @@
var renderer = this.renderers.get(id);
if (
renderer &&
- this.reactInternals[renderer].getNativeFromReactElement
+ this.reactInternals[renderer].getNativeFromReactElement
) {
return this.reactInternals[renderer].getNativeFromReactElement(
component,
@@ -704,7 +704,7 @@
? 'undefined'
: _typeof(element)) !==
'object' ||
- !element
+ !element
) {
return element;
}
@@ -867,7 +867,7 @@
if (type === 'error') {
if (
!this._events.error ||
- isObject(this._events.error) && !this._events.error.length
+ isObject(this._events.error) && !this._events.error.length
) {
er = arguments[1];
if (er instanceof Error) {
@@ -1006,7 +1006,7 @@
if (
list === listener ||
- isFunction(list.listener) && list.listener === listener
+ isFunction(list.listener) && list.listener === listener
) {
delete this._events[type];
if (this._events.removeListener)
@@ -1015,7 +1015,7 @@
for (i = length; i-- > 0; ) {
if (
list[i] === listener ||
- list[i].listener && list[i].listener === listener
+ list[i].listener && list[i].listener === listener
) {
position = i;
break;
@@ -1469,7 +1469,7 @@
while (
this._buffer.length &&
- (deadline.timeRemaining() > 0 || deadline.didTimeout)
+ (deadline.timeRemaining() > 0 || deadline.didTimeout)
) {
var take = Math.min(
this._buffer.length,
@@ -1653,9 +1653,9 @@
}
if (
isFn &&
- (name === 'arguments' ||
- name === 'callee' ||
- name === 'caller')
+ (name === 'arguments' ||
+ name === 'callee' ||
+ name === 'caller')
) {
return;
}
@@ -1673,9 +1673,9 @@
) {
if (
pIsFn &&
- (name === 'arguments' ||
- name === 'callee' ||
- name === 'caller')
+ (name === 'arguments' ||
+ name === 'callee' ||
+ name === 'caller')
) {
return;
}
@@ -2249,8 +2249,8 @@
}
if (
!data ||
- (typeof data === 'undefined' ? 'undefined' : _typeof(data)) !==
- 'object'
+ (typeof data === 'undefined' ? 'undefined' : _typeof(data)) !==
+ 'object'
) {
if (typeof data === 'string' && data.length > 500) {
return data.slice(0, 500) + '...';
@@ -2295,8 +2295,8 @@
} // TODO when this is in the iframe window, we can just use Object
if (
data.constructor &&
- typeof data.constructor === 'function' &&
- data.constructor.name !== 'Object'
+ typeof data.constructor === 'function' &&
+ data.constructor.name !== 'Object'
) {
cleaned.push(path);
return {
@@ -2832,7 +2832,7 @@
var nodeType = 'Native'; // If the parent is a native node without rendered children, but with // multiple string children, then the `element` that gets passed in here is // a plain value -- a string or number.
if (
(typeof element === 'undefined' ? 'undefined' : _typeof(element)) !==
- 'object'
+ 'object'
) {
nodeType = 'Text';
text = element + '';
@@ -2876,9 +2876,9 @@
name = element.getName(); // 0.14 top-level wrapper // TODO(jared): The backend should just act as if these don't exist.
if (
element._renderedComponent &&
- (element._currentElement.props ===
- element._renderedComponent._currentElement ||
- element._currentElement.type.isReactTopLevelWrapper)
+ (element._currentElement.props ===
+ element._renderedComponent._currentElement ||
+ element._currentElement.type.isReactTopLevelWrapper)
) {
nodeType = 'Wrapper';
}
@@ -3214,7 +3214,7 @@
if (Array.isArray(style)) {
if (
_typeof(style[style.length - 1]) === 'object' &&
- !Array.isArray(style[style.length - 1])
+ !Array.isArray(style[style.length - 1])
) {
customStyle = shallowClone(style[style.length - 1]);
delete customStyle[oldName];
@@ -3227,7 +3227,7 @@
} else {
if (
(typeof style === 'undefined' ? 'undefined' : _typeof(style)) ===
- 'object'
+ 'object'
) {
customStyle = shallowClone(style);
delete customStyle[oldName];
@@ -3260,7 +3260,7 @@
if (Array.isArray(style)) {
if (
_typeof(style[style.length - 1]) === 'object' &&
- !Array.isArray(style[style.length - 1])
+ !Array.isArray(style[style.length - 1])
) {
// $FlowFixMe we know that updater is not null here
data.updater.setInProps(['style', style.length - 1, attr], val);
diff --git a/pkg/nuclide-react-inspector/VendorLib/dev-tools/build/standalone.js b/pkg/nuclide-react-inspector/VendorLib/dev-tools/build/standalone.js
index 74a0312..a215cdb 100644
--- a/pkg/nuclide-react-inspector/VendorLib/dev-tools/build/standalone.js
+++ b/pkg/nuclide-react-inspector/VendorLib/dev-tools/build/standalone.js
@@ -695,8 +695,8 @@ module.exports = /******/ (function(modules) {
attr: function attr(id, node, val, path, name) {
if (
!val ||
- node.get('nodeType') !== 'Composite' ||
- val[consts.type] !== 'function'
+ node.get('nodeType') !== 'Composite' ||
+ val[consts.type] !== 'function'
) {
return undefined;
}
@@ -939,7 +939,7 @@ module.exports = /******/ (function(modules) {
});
if (
Object.keys(Object.assign({}, test3)).join('') !==
- 'abcdefghijklmnopqrst'
+ 'abcdefghijklmnopqrst'
) {
return false;
}
@@ -1642,7 +1642,7 @@ module.exports = /******/ (function(modules) {
for (propName in config) {
if (
hasOwnProperty.call(config, propName) &&
- !RESERVED_PROPS.hasOwnProperty(propName)
+ !RESERVED_PROPS.hasOwnProperty(propName)
) {
props[propName] = config[propName];
}
@@ -1715,7 +1715,7 @@ module.exports = /******/ (function(modules) {
if (
typeof props.$$typeof === 'undefined' ||
- props.$$typeof !== REACT_ELEMENT_TYPE
+ props.$$typeof !== REACT_ELEMENT_TYPE
) {
if (!props.hasOwnProperty('key')) {
Object.defineProperty(props, 'key', {
@@ -1825,7 +1825,7 @@ module.exports = /******/ (function(modules) {
for (propName in config) {
if (
hasOwnProperty.call(config, propName) &&
- !RESERVED_PROPS.hasOwnProperty(propName)
+ !RESERVED_PROPS.hasOwnProperty(propName)
) {
if (
config[propName] === undefined && defaultProps !== undefined
@@ -2141,9 +2141,9 @@ module.exports = /******/ (function(modules) {
if (
children === null ||
- type === 'string' ||
- type === 'number' ||
- ReactElement.isValidElement(children)
+ type === 'string' ||
+ type === 'number' ||
+ ReactElement.isValidElement(children)
) {
callback(
traverseContext,
@@ -3548,7 +3548,7 @@ module.exports = /******/ (function(modules) {
// We allow auto-mocks to proceed as if they're returning null.
if (
initialState === undefined &&
- this.getInitialState._isMockFunction
+ this.getInitialState._isMockFunction
) {
// This is probably bad practice. Consider warning here and
// deprecating this convenience.
@@ -4129,8 +4129,8 @@ module.exports = /******/ (function(modules) {
var childOwner = '';
if (
element &&
- element._owner &&
- element._owner !== ReactCurrentOwner.current
+ element._owner &&
+ element._owner !== ReactCurrentOwner.current
) {
// Give the component that originally created this child.
childOwner = ' It was passed a child from ' +
@@ -4620,8 +4620,8 @@ module.exports = /******/ (function(modules) {
if (
typeof process !== 'undefined' &&
- process.env &&
- process.env.NODE_ENV === 'test'
+ process.env &&
+ process.env.NODE_ENV === 'test'
) {
// Temporary hack.
// Inline requires don't work well with Jest:
@@ -5222,7 +5222,7 @@ module.exports = /******/ (function(modules) {
propFullName,
ReactPropTypesSecret,
) ==
- null
+ null
) {
return null;
}
@@ -6001,7 +6001,7 @@ module.exports = /******/ (function(modules) {
/* eslint-enable camelcase */
if (
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject === 'function'
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject === 'function'
) {
__REACT_DEVTOOLS_GLOBAL_HOOK__.inject({
ComponentTree: {
@@ -6032,7 +6032,7 @@ module.exports = /******/ (function(modules) {
if (
navigator.userAgent.indexOf('Chrome') > -1 &&
navigator.userAgent.indexOf('Edge') === -1 ||
- navigator.userAgent.indexOf('Firefox') > -1
+ navigator.userAgent.indexOf('Firefox') > -1
) {
// Firefox does not have the issue with devtools loaded over file://
var showFileUrlMessage = window.location.protocol.indexOf(
@@ -6214,10 +6214,10 @@ module.exports = /******/ (function(modules) {
if (
childNode.nodeType === 1 &&
childNode.getAttribute(ATTR_NAME) === String(childID) ||
- childNode.nodeType === 8 &&
- childNode.nodeValue === ' react-text: ' + childID + ' ' ||
- childNode.nodeType === 8 &&
- childNode.nodeValue === ' react-empty: ' + childID + ' '
+ childNode.nodeType === 8 &&
+ childNode.nodeValue === ' react-text: ' + childID + ' ' ||
+ childNode.nodeType === 8 &&
+ childNode.nodeValue === ' react-empty: ' + childID + ' '
) {
precacheNode(childInst, childNode);
continue outer;
@@ -7179,8 +7179,8 @@ module.exports = /******/ (function(modules) {
if (currentComposition) {
if (
topLevelType === topLevelTypes.topCompositionEnd ||
- !canUseCompositionEvent &&
- isFallbackCompositionEnd(topLevelType, nativeEvent)
+ !canUseCompositionEvent &&
+ isFallbackCompositionEnd(topLevelType, nativeEvent)
) {
var chars = currentComposition.getData();
FallbackCompositionState.release(currentComposition);
@@ -8166,7 +8166,7 @@ module.exports = /******/ (function(modules) {
var PluginModule = injectedNamesToPlugins[pluginName];
if (
!namesToPlugins.hasOwnProperty(pluginName) ||
- namesToPlugins[pluginName] !== PluginModule
+ namesToPlugins[pluginName] !== PluginModule
) {
!!namesToPlugins[pluginName]
? process.env.NODE_ENV !== 'production'
@@ -8593,9 +8593,9 @@ module.exports = /******/ (function(modules) {
*/
if (
typeof window !== 'undefined' &&
- typeof window.dispatchEvent === 'function' &&
- typeof document !== 'undefined' &&
- typeof document.createEvent === 'function'
+ typeof window.dispatchEvent === 'function' &&
+ typeof document !== 'undefined' &&
+ typeof document.createEvent === 'function'
) {
var fakeNode = document.createElement('react');
ReactErrorUtils.invokeGuardedCallback = function(name, func, a, b) {
@@ -9031,7 +9031,7 @@ module.exports = /******/ (function(modules) {
});
if (
Object.keys(Object.assign({}, test3)).join('') !==
- 'abcdefghijklmnopqrst'
+ 'abcdefghijklmnopqrst'
) {
return false;
}
@@ -9531,8 +9531,8 @@ module.exports = /******/ (function(modules) {
set: function(target, prop, value) {
if (
prop !== 'isPersistent' &&
- !target.constructor.Interface.hasOwnProperty(prop) &&
- shouldBeReleasedProperties.indexOf(prop) === -1
+ !target.constructor.Interface.hasOwnProperty(prop) &&
+ shouldBeReleasedProperties.indexOf(prop) === -1
) {
process.env.NODE_ENV !== 'production'
? warning(
@@ -9993,8 +9993,8 @@ module.exports = /******/ (function(modules) {
function getTargetInstForInputEventIE(topLevelType, targetInst) {
if (
topLevelType === topLevelTypes.topSelectionChange ||
- topLevelType === topLevelTypes.topKeyUp ||
- topLevelType === topLevelTypes.topKeyDown
+ topLevelType === topLevelTypes.topKeyUp ||
+ topLevelType === topLevelTypes.topKeyDown
) {
// On the selectionchange event, the target is just document which isn't
// helpful for us so just check activeElement instead.
@@ -10266,7 +10266,7 @@ module.exports = /******/ (function(modules) {
// Duck type TopLevelWrapper. This is probably always true.
if (
component._currentElement.props ===
- component._renderedComponent._currentElement
+ component._renderedComponent._currentElement
) {
namedComponent = component._renderedComponent;
}
@@ -10619,7 +10619,7 @@ module.exports = /******/ (function(modules) {
);
if (
internalInstance._currentElement &&
- internalInstance._currentElement.ref != null
+ internalInstance._currentElement.ref != null
) {
transaction
.getReactMountReady()
@@ -10720,8 +10720,8 @@ module.exports = /******/ (function(modules) {
if (
refsChanged &&
- internalInstance._currentElement &&
- internalInstance._currentElement.ref != null
+ internalInstance._currentElement &&
+ internalInstance._currentElement.ref != null
) {
transaction
.getReactMountReady()
@@ -10849,7 +10849,7 @@ module.exports = /******/ (function(modules) {
var prevEmpty = prevElement === null || prevElement === false;
var nextEmpty = nextElement === null || nextElement === false;
- return // This has a few false positives w/r/t empty components.
+ return; // This has a few false positives w/r/t empty components.
prevEmpty ||
nextEmpty ||
nextElement.ref !== prevElement.ref ||
@@ -10974,7 +10974,7 @@ module.exports = /******/ (function(modules) {
// because we do not want to detach the ref if another component stole it.
if (
ownerPublicInstance &&
- ownerPublicInstance.refs[ref] === component.getPublicInstance()
+ ownerPublicInstance.refs[ref] === component.getPublicInstance()
) {
owner.detachRef(ref);
}
@@ -11488,8 +11488,7 @@ module.exports = /******/ (function(modules) {
}
}
- var canUseCollections = // Array.from
- typeof Array.from === 'function' &&
+ var canUseCollections = typeof Array.from === 'function' && // Array.from
// Map
typeof Map === 'function' &&
isNative(Map) &&
@@ -12346,7 +12345,7 @@ module.exports = /******/ (function(modules) {
function isEventSupported(eventNameSuffix, capture) {
if (
!ExecutionEnvironment.canUseDOM ||
- capture && !('addEventListener' in document)
+ capture && !('addEventListener' in document)
) {
return false;
}
@@ -12520,13 +12519,13 @@ module.exports = /******/ (function(modules) {
) {
if (
topLevelType === topLevelTypes.topMouseOver &&
- (nativeEvent.relatedTarget || nativeEvent.fromElement)
+ (nativeEvent.relatedTarget || nativeEvent.fromElement)
) {
return null;
}
if (
topLevelType !== topLevelTypes.topMouseOut &&
- topLevelType !== topLevelTypes.topMouseOver
+ topLevelType !== topLevelTypes.topMouseOver
) {
// Must not be a mouse in or mouse out - ignoring.
return null;
@@ -13435,10 +13434,10 @@ module.exports = /******/ (function(modules) {
// must also be populated prior to insertion into the DOM.
if (
tree.node.nodeType === DOCUMENT_FRAGMENT_NODE_TYPE ||
- tree.node.nodeType === ELEMENT_NODE_TYPE &&
- tree.node.nodeName.toLowerCase() === 'object' &&
- (tree.node.namespaceURI == null ||
- tree.node.namespaceURI === DOMNamespaces.html)
+ tree.node.nodeType === ELEMENT_NODE_TYPE &&
+ tree.node.nodeName.toLowerCase() === 'object' &&
+ (tree.node.namespaceURI == null ||
+ tree.node.namespaceURI === DOMNamespaces.html)
) {
insertTreeChildren(tree);
parentNode.insertBefore(tree.node, referenceNode);
@@ -13604,7 +13603,7 @@ module.exports = /******/ (function(modules) {
// and simply check if any non-visible tags appear in the source.
if (
WHITESPACE_TEST.test(html) ||
- html[0] === '<' && NONVISIBLE_TEST.test(html)
+ html[0] === '<' && NONVISIBLE_TEST.test(html)
) {
// Recover leading whitespace by temporarily prepending any character.
// \uFEFF has the potential advantage of being zero-width/invisible.
@@ -13704,8 +13703,8 @@ module.exports = /******/ (function(modules) {
if (
firstChild &&
- firstChild === node.lastChild &&
- firstChild.nodeType === 3
+ firstChild === node.lastChild &&
+ firstChild.nodeType === 3
) {
firstChild.nodeValue = text;
return;
@@ -14120,7 +14119,7 @@ module.exports = /******/ (function(modules) {
* @return {boolean}
*/
function hasArrayNature(obj) {
- return // not null/false
+ return; // not null/false
!!obj &&
// arrays are objects, NodeLists are functions in Safari
(typeof obj == 'object' || typeof obj == 'function') &&
@@ -15021,8 +15020,7 @@ module.exports = /******/ (function(modules) {
}
if (
namespaceURI == null ||
- namespaceURI === DOMNamespaces.svg &&
- parentTag === 'foreignobject'
+ namespaceURI === DOMNamespaces.svg && parentTag === 'foreignobject'
) {
namespaceURI = DOMNamespaces.html;
}
@@ -15419,8 +15417,8 @@ module.exports = /******/ (function(modules) {
for (propKey in lastProps) {
if (
nextProps.hasOwnProperty(propKey) ||
- !lastProps.hasOwnProperty(propKey) ||
- lastProps[propKey] == null
+ !lastProps.hasOwnProperty(propKey) ||
+ lastProps[propKey] == null
) {
continue;
}
@@ -15449,7 +15447,7 @@ module.exports = /******/ (function(modules) {
}
} else if (
DOMProperty.properties[propKey] ||
- DOMProperty.isCustomAttribute(propKey)
+ DOMProperty.isCustomAttribute(propKey)
) {
DOMPropertyOperations.deleteValueForProperty(
getNode(this),
@@ -15464,8 +15462,8 @@ module.exports = /******/ (function(modules) {
: lastProps != null ? lastProps[propKey] : undefined;
if (
!nextProps.hasOwnProperty(propKey) ||
- nextProp === lastProp ||
- nextProp == null && lastProp == null
+ nextProp === lastProp ||
+ nextProp == null && lastProp == null
) {
continue;
}
@@ -15488,7 +15486,7 @@ module.exports = /******/ (function(modules) {
for (styleName in lastProp) {
if (
lastProp.hasOwnProperty(styleName) &&
- (!nextProp || !nextProp.hasOwnProperty(styleName))
+ (!nextProp || !nextProp.hasOwnProperty(styleName))
) {
styleUpdates = styleUpdates || {};
styleUpdates[styleName] = '';
@@ -15498,7 +15496,7 @@ module.exports = /******/ (function(modules) {
for (styleName in nextProp) {
if (
nextProp.hasOwnProperty(styleName) &&
- lastProp[styleName] !== nextProp[styleName]
+ lastProp[styleName] !== nextProp[styleName]
) {
styleUpdates = styleUpdates || {};
styleUpdates[styleName] = nextProp[styleName];
@@ -15524,7 +15522,7 @@ module.exports = /******/ (function(modules) {
}
} else if (
DOMProperty.properties[propKey] ||
- DOMProperty.isCustomAttribute(propKey)
+ DOMProperty.isCustomAttribute(propKey)
) {
var node = getNode(this);
// If we're updating to null or undefined, we should remove the property
@@ -16281,8 +16279,8 @@ module.exports = /******/ (function(modules) {
var isNonNumeric = isNaN(value);
if (
isNonNumeric ||
- value === 0 ||
- isUnitlessNumber.hasOwnProperty(name) && isUnitlessNumber[name]
+ value === 0 ||
+ isUnitlessNumber.hasOwnProperty(name) && isUnitlessNumber[name]
) {
return '' + value; // cast to string
}
@@ -16540,7 +16538,7 @@ module.exports = /******/ (function(modules) {
var attributeName = propertyInfo.attributeName;
if (
propertyInfo.hasBooleanValue ||
- propertyInfo.hasOverloadedBooleanValue && value === true
+ propertyInfo.hasOverloadedBooleanValue && value === true
) {
return attributeName + '=""';
}
@@ -16597,7 +16595,7 @@ module.exports = /******/ (function(modules) {
node.setAttributeNS(namespace, attributeName, '' + value);
} else if (
propertyInfo.hasBooleanValue ||
- propertyInfo.hasOverloadedBooleanValue && value === true
+ propertyInfo.hasOverloadedBooleanValue && value === true
) {
node.setAttribute(attributeName, '');
} else {
@@ -17022,7 +17020,7 @@ module.exports = /******/ (function(modules) {
}
} else if (
dependency === topLevelTypes.topFocus ||
- dependency === topLevelTypes.topBlur
+ dependency === topLevelTypes.topBlur
) {
if (isEventSupported('focus', true)) {
ReactBrowserEventEmitter.ReactEventListener.trapCapturedEvent(
@@ -17477,8 +17475,8 @@ module.exports = /******/ (function(modules) {
}
if (
props.checked !== undefined &&
- props.defaultChecked !== undefined &&
- !didWarnCheckedDefaultChecked
+ props.defaultChecked !== undefined &&
+ !didWarnCheckedDefaultChecked
) {
process.env.NODE_ENV !== 'production'
? warning(
@@ -17497,8 +17495,8 @@ module.exports = /******/ (function(modules) {
}
if (
props.value !== undefined &&
- props.defaultValue !== undefined &&
- !didWarnValueDefaultValue
+ props.defaultValue !== undefined &&
+ !didWarnValueDefaultValue
) {
process.env.NODE_ENV !== 'production'
? warning(
@@ -17540,8 +17538,8 @@ module.exports = /******/ (function(modules) {
if (
!inst._wrapperState.controlled &&
- controlled &&
- !didWarnUncontrolledToControlled
+ controlled &&
+ !didWarnUncontrolledToControlled
) {
process.env.NODE_ENV !== 'production'
? warning(
@@ -17558,8 +17556,8 @@ module.exports = /******/ (function(modules) {
}
if (
inst._wrapperState.controlled &&
- !controlled &&
- !didWarnControlledToUncontrolled
+ !controlled &&
+ !didWarnControlledToUncontrolled
) {
process.env.NODE_ENV !== 'production'
? warning(
@@ -17791,10 +17789,10 @@ module.exports = /******/ (function(modules) {
value: function(props, propName, componentName) {
if (
!props[propName] ||
- hasReadOnlyValue[props.type] ||
- props.onChange ||
- props.readOnly ||
- props.disabled
+ hasReadOnlyValue[props.type] ||
+ props.onChange ||
+ props.readOnly ||
+ props.disabled
) {
return null;
}
@@ -17808,9 +17806,9 @@ module.exports = /******/ (function(modules) {
checked: function(props, propName, componentName) {
if (
!props[propName] ||
- props.onChange ||
- props.readOnly ||
- props.disabled
+ props.onChange ||
+ props.readOnly ||
+ props.disabled
) {
return null;
}
@@ -18386,7 +18384,7 @@ module.exports = /******/ (function(modules) {
propFullName,
ReactPropTypesSecret,
) ==
- null
+ null
) {
return null;
}
@@ -18811,7 +18809,7 @@ module.exports = /******/ (function(modules) {
for (propName in config) {
if (
hasOwnProperty.call(config, propName) &&
- !RESERVED_PROPS.hasOwnProperty(propName)
+ !RESERVED_PROPS.hasOwnProperty(propName)
) {
props[propName] = config[propName];
}
@@ -18844,7 +18842,7 @@ module.exports = /******/ (function(modules) {
if (key || ref) {
if (
typeof props.$$typeof === 'undefined' ||
- props.$$typeof !== REACT_ELEMENT_TYPE
+ props.$$typeof !== REACT_ELEMENT_TYPE
) {
var displayName = typeof type === 'function'
? type.displayName || type.name || 'Unknown'
@@ -18939,7 +18937,7 @@ module.exports = /******/ (function(modules) {
for (propName in config) {
if (
hasOwnProperty.call(config, propName) &&
- !RESERVED_PROPS.hasOwnProperty(propName)
+ !RESERVED_PROPS.hasOwnProperty(propName)
) {
if (
config[propName] === undefined && defaultProps !== undefined
@@ -19580,9 +19578,9 @@ module.exports = /******/ (function(modules) {
if (
children === null ||
- type === 'string' ||
- type === 'number' ||
- ReactElement.isValidElement(children)
+ type === 'string' ||
+ type === 'number' ||
+ ReactElement.isValidElement(children)
) {
callback(
traverseContext,
@@ -19984,8 +19982,8 @@ module.exports = /******/ (function(modules) {
if (
props.value !== undefined &&
- props.defaultValue !== undefined &&
- !didWarnValueDefaultValue
+ props.defaultValue !== undefined &&
+ !didWarnValueDefaultValue
) {
process.env.NODE_ENV !== 'production'
? warning(
@@ -20147,8 +20145,8 @@ module.exports = /******/ (function(modules) {
}
if (
props.value !== undefined &&
- props.defaultValue !== undefined &&
- !didWarnValDefaultVal
+ props.defaultValue !== undefined &&
+ !didWarnValDefaultVal
) {
process.env.NODE_ENV !== 'production'
? warning(
@@ -20946,8 +20944,8 @@ module.exports = /******/ (function(modules) {
if (
typeof process !== 'undefined' &&
- process.env &&
- process.env.NODE_ENV === 'test'
+ process.env &&
+ process.env.NODE_ENV === 'test'
) {
// Temporary hack.
// Inline requires don't work well with Jest:
@@ -21064,7 +21062,7 @@ module.exports = /******/ (function(modules) {
var nextElement = nextChildren[name];
if (
prevChild != null &&
- shouldUpdateReactComponent(prevElement, nextElement)
+ shouldUpdateReactComponent(prevElement, nextElement)
) {
ReactReconciler.receiveComponent(
prevChild,
@@ -21101,7 +21099,7 @@ module.exports = /******/ (function(modules) {
for (name in prevChildren) {
if (
prevChildren.hasOwnProperty(name) &&
- !(nextChildren && nextChildren.hasOwnProperty(name))
+ !(nextChildren && nextChildren.hasOwnProperty(name))
) {
prevChild = prevChildren[name];
removedNodes[name] = ReactReconciler.getHostNode(prevChild);
@@ -22498,7 +22496,7 @@ module.exports = /******/ (function(modules) {
var renderedComponent;
if (
process.env.NODE_ENV !== 'production' ||
- this._compositeType !== CompositeTypes.StatelessFunctional
+ this._compositeType !== CompositeTypes.StatelessFunctional
) {
ReactCurrentOwner.current = this;
try {
@@ -22693,8 +22691,8 @@ module.exports = /******/ (function(modules) {
if (
typeof process !== 'undefined' &&
- process.env &&
- process.env.NODE_ENV === 'test'
+ process.env &&
+ process.env.NODE_ENV === 'test'
) {
// Temporary hack.
// Inline requires don't work well with Jest:
@@ -22889,9 +22887,9 @@ module.exports = /******/ (function(modules) {
if (
typeof objA !== 'object' ||
- objA === null ||
- typeof objB !== 'object' ||
- objB === null
+ objA === null ||
+ typeof objB !== 'object' ||
+ objB === null
) {
return false;
}
@@ -22907,7 +22905,7 @@ module.exports = /******/ (function(modules) {
for (var i = 0; i < keysA.length; i++) {
if (
!hasOwnProperty.call(objB, keysA[i]) ||
- !is(objA[keysA[i]], objB[keysA[i]])
+ !is(objA[keysA[i]], objB[keysA[i]])
) {
return false;
}
@@ -23113,8 +23111,8 @@ module.exports = /******/ (function(modules) {
if (
typeof process !== 'undefined' &&
- process.env &&
- process.env.NODE_ENV === 'test'
+ process.env &&
+ process.env.NODE_ENV === 'test'
) {
// Temporary hack.
// Inline requires don't work well with Jest:
@@ -23931,9 +23929,9 @@ module.exports = /******/ (function(modules) {
// https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inbody
if (
specialTags.indexOf(tag) !== -1 &&
- tag !== 'address' &&
- tag !== 'div' &&
- tag !== 'p'
+ tag !== 'address' &&
+ tag !== 'div' &&
+ tag !== 'p'
) {
ancestorInfo.listItemTagAutoclosing = null;
ancestorInfo.dlItemTagAutoclosing = null;
@@ -25976,7 +25974,7 @@ module.exports = /******/ (function(modules) {
// We allow auto-mocks to proceed as if they're returning null.
if (
initialState === undefined &&
- this.getInitialState._isMockFunction
+ this.getInitialState._isMockFunction
) {
// This is probably bad practice. Consider warning here and
// deprecating this convenience.
@@ -26565,7 +26563,7 @@ module.exports = /******/ (function(modules) {
var priorSelectionRange = priorSelectionInformation.selectionRange;
if (
curFocusedElem !== priorFocusedElem &&
- isInDocument(priorFocusedElem)
+ isInDocument(priorFocusedElem)
) {
if (
ReactInputSelection.hasSelectionCapabilities(priorFocusedElem)
@@ -26595,8 +26593,8 @@ module.exports = /******/ (function(modules) {
};
} else if (
document.selection &&
- input.nodeName &&
- input.nodeName.toLowerCase() === 'input'
+ input.nodeName &&
+ input.nodeName.toLowerCase() === 'input'
) {
// IE8 input.
var range = document.selection.createRange();
@@ -26633,8 +26631,8 @@ module.exports = /******/ (function(modules) {
input.selectionEnd = Math.min(end, input.value.length);
} else if (
document.selection &&
- input.nodeName &&
- input.nodeName.toLowerCase() === 'input'
+ input.nodeName &&
+ input.nodeName.toLowerCase() === 'input'
) {
var range = input.createTextRange();
range.collapse(true);
@@ -27483,7 +27481,7 @@ module.exports = /******/ (function(modules) {
function getSelection(node) {
if (
'selectionStart' in node &&
- ReactInputSelection.hasSelectionCapabilities(node)
+ ReactInputSelection.hasSelectionCapabilities(node)
) {
return {
start: node.selectionStart,
@@ -27521,8 +27519,8 @@ module.exports = /******/ (function(modules) {
// won't dispatch.
if (
mouseDown ||
- activeElement == null ||
- activeElement !== getActiveElement()
+ activeElement == null ||
+ activeElement !== getActiveElement()
) {
return null;
}
@@ -27585,7 +27583,7 @@ module.exports = /******/ (function(modules) {
case topLevelTypes.topFocus:
if (
isTextInputElement(targetNode) ||
- targetNode.contentEditable === 'true'
+ targetNode.contentEditable === 'true'
) {
activeElement = targetNode;
activeElementInst = targetInst;
@@ -28925,18 +28923,15 @@ module.exports = /******/ (function(modules) {
var WheelEventInterface = {
deltaX: function(event) {
return 'deltaX' in event
- ? event.deltaX
- : // Fallback to `wheelDeltaX` for Webkit and normalize (right is positive).
- 'wheelDeltaX' in event ? -event.wheelDeltaX : 0;
+ ? event.deltaX // Fallback to `wheelDeltaX` for Webkit and normalize (right is positive).
+ : 'wheelDeltaX' in event ? -event.wheelDeltaX : 0;
},
deltaY: function(event) {
return 'deltaY' in event
- ? event.deltaY
- : // Fallback to `wheelDeltaY` for Webkit and normalize (down is positive).
- 'wheelDeltaY' in event
- ? -event.wheelDeltaY
- : // Fallback to `wheelDelta` for IE<9 and normalize (down is positive).
- 'wheelDelta' in event ? -event.wheelDelta : 0;
+ ? event.deltaY // Fallback to `wheelDeltaY` for Webkit and normalize (down is positive).
+ : 'wheelDeltaY' in event
+ ? -event.wheelDeltaY // Fallback to `wheelDelta` for IE<9 and normalize (down is positive).
+ : 'wheelDelta' in event ? -event.wheelDelta : 0;
},
deltaZ: null,
// Browsers without "deltaMode" is reporting in raw wheel delta where one
@@ -29431,9 +29426,8 @@ module.exports = /******/ (function(modules) {
"React.createElement('div') or <div />."
: typeof nextElement === 'function'
? ' Instead of passing a class like Foo, pass ' +
- 'React.createElement(Foo) or <Foo />.'
- : // Check if it quacks like an element
- nextElement != null &&
+ 'React.createElement(Foo) or <Foo />.' // Check if it quacks like an element
+ : nextElement != null &&
nextElement.props !== undefined
? ' This may be caused by unintentionally loading two independent ' +
'copies of React.'
@@ -30171,13 +30165,13 @@ module.exports = /******/ (function(modules) {
var validateProperty = function(tagName, name, debugID) {
if (
DOMProperty.properties.hasOwnProperty(name) ||
- DOMProperty.isCustomAttribute(name)
+ DOMProperty.isCustomAttribute(name)
) {
return true;
}
if (
reactProps.hasOwnProperty(name) && reactProps[name] ||
- warnedProperties.hasOwnProperty(name) && warnedProperties[name]
+ warnedProperties.hasOwnProperty(name) && warnedProperties[name]
) {
return true;
}
@@ -30323,15 +30317,15 @@ module.exports = /******/ (function(modules) {
}
if (
element.type !== 'input' &&
- element.type !== 'textarea' &&
- element.type !== 'select'
+ element.type !== 'textarea' &&
+ element.type !== 'select'
) {
return;
}
if (
element.props != null &&
- element.props.value === null &&
- !didWarnValueNull
+ element.props.value === null &&
+ !didWarnValueNull
) {
process.env.NODE_ENV !== 'production'
? warning(
@@ -31496,8 +31490,8 @@ module.exports = /******/ (function(modules) {
value: function componentDidMount() {
if (
this.state.open &&
- this.props.value &&
- this.props.value[consts.inspected] === false
+ this.props.value &&
+ this.props.value[consts.inspected] === false
) {
this.inspect();
}
@@ -31508,8 +31502,8 @@ module.exports = /******/ (function(modules) {
value: function componentWillReceiveProps(nextProps) {
if (
this.state.open &&
- nextProps.value &&
- nextProps.value[consts.inspected] === false
+ nextProps.value &&
+ nextProps.value[consts.inspected] === false
) {
this.inspect();
}
@@ -31558,9 +31552,9 @@ module.exports = /******/ (function(modules) {
var preview;
if (
otype === 'number' ||
- otype === 'string' ||
- data == null /* null or undefined */ ||
- otype === 'boolean'
+ otype === 'string' ||
+ data == null /* null or undefined */ ||
+ otype === 'boolean'
) {
preview = React.createElement(Simple, {
readOnly: this.props.readOnly,
@@ -32364,9 +32358,15 @@ module.exports = /******/ (function(modules) {
obj = {
foo: 'raz',
};
- assign(obj, {bar: 'dwa'}, {
- trzy: 'trzy',
- });
+ assign(
+ obj,
+ {
+ bar: 'dwa',
+ },
+ {
+ trzy: 'trzy',
+ },
+ );
return obj.foo + obj.bar + obj.trzy === 'razdwatrzy';
}; /***/
} /* 221 */ /***/,
@@ -32375,7 +32375,7 @@ module.exports = /******/ (function(modules) {
var keys = __webpack_require__(222),
value = __webpack_require__(225),
max = Math.max;
- module.exports = function(dest, src /*, …srcn*/) {
+ module.exports = function(dest, src) /*, …srcn*/ {
var error, i, l = max(arguments.length, 2), assign;
dest = Object(value(dest));
assign = function(key) {
@@ -32391,13 +32391,15 @@ module.exports = /******/ (function(modules) {
}
if (error !== undefined) throw error;
return dest;
- }; /***/
+ };
+ /***/
} /* 222 */ /***/,
function(module, exports, __webpack_require__) {
'use strict';
module.exports = __webpack_require__(223)()
? Object.keys
- : __webpack_require__(224); /***/
+ : __webpack_require__(224);
+ /***/
} /* 223 */ /***/,
function(module, exports) {
'use strict';
@@ -32408,21 +32410,24 @@ module.exports = /******/ (function(modules) {
} catch (e) {
return false;
}
- }; /***/
+ };
+ /***/
} /* 224 */ /***/,
function(module, exports) {
'use strict';
var keys = Object.keys;
module.exports = function(object) {
return keys(object == null ? object : Object(object));
- }; /***/
+ };
+ /***/
} /* 225 */ /***/,
function(module, exports) {
'use strict';
module.exports = function(value) {
if (value == null) throw new TypeError('Cannot use null or undefined');
return value;
- }; /***/
+ };
+ /***/
} /* 226 */ /***/,
function(module, exports) {
'use strict';
@@ -32432,27 +32437,30 @@ module.exports = /******/ (function(modules) {
for (key in src)
obj[key] = src[key];
};
- module.exports = function(options /*, …options*/) {
+ module.exports = function(options) /*, …options*/ {
var result = create(null);
forEach.call(arguments, function(options) {
if (options == null) return;
process(Object(options), result);
});
return result;
- }; /***/
+ };
+ /***/
} /* 227 */ /***/,
function(module, exports) {
// Deprecated
'use strict';
module.exports = function(obj) {
return typeof obj === 'function';
- }; /***/
+ };
+ /***/
} /* 228 */ /***/,
function(module, exports, __webpack_require__) {
'use strict';
module.exports = __webpack_require__(229)()
? String.prototype.contains
- : __webpack_require__(230); /***/
+ : __webpack_require__(230);
+ /***/
} /* 229 */ /***/,
function(module, exports) {
'use strict';
@@ -32460,14 +32468,16 @@ module.exports = /******/ (function(modules) {
module.exports = function() {
if (typeof str.contains !== 'function') return false;
return str.contains('dwa') === true && str.contains('foo') === false;
- }; /***/
+ };
+ /***/
} /* 230 */ /***/,
function(module, exports) {
'use strict';
var indexOf = String.prototype.indexOf;
- module.exports = function(searchString /*, position*/) {
+ module.exports = function(searchString) /*, position*/ {
return indexOf.call(this, searchString, arguments[1]) > -1;
- }; /***/
+ };
+ /***/
} /* 231 */ /***/,
function(module, exports, __webpack_require__) {
'use strict';
@@ -32475,7 +32485,8 @@ module.exports = /******/ (function(modules) {
module.exports = function(value) {
if (!isSymbol(value)) throw new TypeError(value + ' is not a symbol');
return value;
- }; /***/
+ };
+ /***/
} /* 232 */ /***/,
function(module, exports) {
'use strict';
@@ -32483,7 +32494,8 @@ module.exports = /******/ (function(modules) {
return x &&
(typeof x === 'symbol' || x['@@toStringTag'] === 'Symbol') ||
false;
- }; /***/
+ };
+ /***/
} /* 233 */ /***/,
function(module, exports, __webpack_require__) {
/**
@@ -32904,9 +32916,9 @@ module.exports = /******/ (function(modules) {
}
if (
this.props.val &&
- prevProps.val &&
- _typeof(this.props.val) === 'object' &&
- _typeof(prevProps.val) === 'object'
+ prevProps.val &&
+ _typeof(this.props.val) === 'object' &&
+ _typeof(prevProps.val) === 'object'
) {
return;
}
@@ -33155,7 +33167,6 @@ module.exports = /******/ (function(modules) {
)
: _prodInvariant('0')
: void 0;
-
var result = [];
for (var key in object) {
if (process.env.NODE_ENV !== 'production') {
@@ -33541,8 +33552,7 @@ module.exports = /******/ (function(modules) {
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
- */
- 'use strict'; /**
+ */ 'use strict'; /**
* Use invariant() to assert state which your program assumes to be true.
*
* Provide sprintf-style format (only %s is supported) and arguments
@@ -33759,7 +33769,6 @@ module.exports = /******/ (function(modules) {
var key = null;
var ref = null;
var self = null;
-
var source = null;
if (config != null) {
if (hasValidRef(config)) {
@@ -33773,7 +33782,7 @@ module.exports = /******/ (function(modules) {
for (propName in config) {
if (
hasOwnProperty.call(config, propName) &&
- !RESERVED_PROPS.hasOwnProperty(propName)
+ !RESERVED_PROPS.hasOwnProperty(propName)
) {
props[propName] = config[propName];
}
@@ -33801,7 +33810,7 @@ module.exports = /******/ (function(modules) {
if (key || ref) {
if (
typeof props.$$typeof === 'undefined' ||
- props.$$typeof !== REACT_ELEMENT_TYPE
+ props.$$typeof !== REACT_ELEMENT_TYPE
) {
var displayName = typeof type === 'function'
? type.displayName || type.name || 'Unknown'
@@ -33831,7 +33840,6 @@ module.exports = /******/ (function(modules) {
ReactElement.createFactory = function(type) {
var factory = ReactElement.createElement.bind(null, type); // Expose the type on the factory and the prototype so that it can be // easily accessed on elements. E.g. `<Foo />.type === Foo`. // This should not be named `constructor` since this may not be the function // that created the element, and it may not even be a constructor. // Legacy hook TODO: Warn if this is accessed
factory.type = type;
-
return factory;
};
ReactElement.cloneAndReplaceKey = function(oldElement, newKey) {
@@ -33873,7 +33881,7 @@ module.exports = /******/ (function(modules) {
for (propName in config) {
if (
hasOwnProperty.call(config, propName) &&
- !RESERVED_PROPS.hasOwnProperty(propName)
+ !RESERVED_PROPS.hasOwnProperty(propName)
) {
if (
config[propName] === undefined && defaultProps !== undefined
@@ -33950,7 +33958,7 @@ module.exports = /******/ (function(modules) {
});
if (
Object.keys(Object.assign({}, test3)).join('') !==
- 'abcdefghijklmnopqrst'
+ 'abcdefghijklmnopqrst'
) {
return false;
}
@@ -33995,8 +34003,7 @@ module.exports = /******/ (function(modules) {
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModule ReactCurrentOwner
- */
- 'use strict'; /**
+ */ 'use strict'; /**
* Keeps track of the current owner.
*
* The current owner is the component who should own any components that are
@@ -34006,9 +34013,7 @@ module.exports = /******/ (function(modules) {
/**
* @internal
* @type {ReactComponent}
- */
-
- current: null,
+ */ current: null,
};
module.exports = ReactCurrentOwner; /***/
} /* 246 */ /***/,
@@ -34203,9 +34208,9 @@ module.exports = /******/ (function(modules) {
}
if (
children === null ||
- type === 'string' ||
- type === 'number' ||
- ReactElement.isValidElement(children)
+ type === 'string' ||
+ type === 'number' ||
+ ReactElement.isValidElement(children)
) {
callback(
traverseContext,
@@ -34368,7 +34373,6 @@ module.exports = /******/ (function(modules) {
* @providesModule getIteratorFn
*
*/ 'use strict';
-
/* global Symbol */ var ITERATOR_SYMBOL = typeof Symbol === 'function' &&
Symbol.iterator;
var FAUX_ITERATOR_SYMBOL = '@@iterator'; /**
@@ -34406,8 +34410,7 @@ module.exports = /******/ (function(modules) {
*
* @providesModule KeyEscapeUtils
*
- */
- 'use strict'; /**
+ */ 'use strict'; /**
* Escape and wrap key so it is safe to use as a reactid
*
* @param {string} key to be escaped.
@@ -35138,7 +35141,6 @@ module.exports = /******/ (function(modules) {
var DID_ALTER = {value: false};
function MakeRef(ref) {
ref.value = false;
-
return ref;
}
function SetRef(ref) {
@@ -35197,7 +35199,6 @@ module.exports = /******/ (function(modules) {
? Math.max(0, size + index)
: size === undefined ? index : Math.min(size, index);
}
-
/* global Symbol */ var ITERATE_KEYS = 0;
var ITERATE_VALUES = 1;
var ITERATE_ENTRIES = 2;
@@ -35680,7 +35681,7 @@ module.exports = /******/ (function(modules) {
}
if (
typeof valueA.valueOf === 'function' &&
- typeof valueB.valueOf === 'function'
+ typeof valueB.valueOf === 'function'
) {
valueA = valueA.valueOf();
valueB = valueB.valueOf();
@@ -35693,12 +35694,11 @@ module.exports = /******/ (function(modules) {
}
if (
typeof valueA.equals === 'function' &&
- typeof valueB.equals === 'function' &&
- valueA.equals(valueB)
+ typeof valueB.equals === 'function' &&
+ valueA.equals(valueB)
) {
return true;
}
-
return false;
}
function deepEqual(a, b) {
@@ -35707,15 +35707,13 @@ module.exports = /******/ (function(modules) {
}
if (
!isIterable(b) ||
- a.size !== undefined &&
- b.size !== undefined &&
- a.size !== b.size ||
- a.__hash !== undefined &&
- b.__hash !== undefined &&
- a.__hash !== b.__hash ||
- isKeyed(a) !== isKeyed(b) ||
- isIndexed(a) !== isIndexed(b) ||
- isOrdered(a) !== isOrdered(b)
+ a.size !== undefined && b.size !== undefined && a.size !== b.size ||
+ a.__hash !== undefined &&
+ b.__hash !== undefined &&
+ a.__hash !== b.__hash ||
+ isKeyed(a) !== isKeyed(b) ||
+ isIndexed(a) !== isIndexed(b) ||
+ isOrdered(a) !== isOrdered(b)
) {
return false;
}
@@ -36081,8 +36079,8 @@ module.exports = /******/ (function(modules) {
});
} else if (
obj.propertyIsEnumerable !== undefined &&
- obj.propertyIsEnumerable ===
- obj.constructor.prototype.propertyIsEnumerable
+ obj.propertyIsEnumerable ===
+ obj.constructor.prototype.propertyIsEnumerable
) {
// Since we can't define a non-enumerable property on the object
// we'll hijack one of the less-used non-enumerable properties to
@@ -36106,7 +36104,6 @@ module.exports = /******/ (function(modules) {
'Unable to set a non-enumerable property on object.',
);
}
-
return hash;
} // Get references to ES5 object methods.
var isExtensible = Object.isExtensible; // True if Object.defineProperty works as expected. IE8 fails this test.
@@ -36121,9 +36118,11 @@ module.exports = /******/ (function(modules) {
function getIENodeHash(node) {
if (node && node.nodeType > 0) {
switch (node.nodeType) {
- case 1: // Element
+ case 1:
+ // Element
return node.uniqueID;
- case 9: // Document
+ case 9:
+ // Document
return node.documentElement && node.documentElement.uniqueID;
}
}
@@ -36133,7 +36132,6 @@ module.exports = /******/ (function(modules) {
if (usingWeakMap) {
weakMap = new WeakMap();
}
-
var objHashUID = 0;
var UID_HASH_KEY = '__immutablehash__';
if (typeof Symbol === 'function') {
@@ -36167,7 +36165,6 @@ module.exports = /******/ (function(modules) {
Map.prototype.toString = function() {
return this.__toString('Map {', '}');
};
-
// @pragma Access
Map.prototype.get = function(k, notSetValue) {
return this._root
@@ -36357,8 +36354,7 @@ module.exports = /******/ (function(modules) {
SetRef(didAlter);
(removed || !exists) && SetRef(didChangeSize);
if (removed && entries.length === 1) {
- return;
- // undefined
+ return; // undefined
}
if (!exists && !removed && entries.length >= MAX_ARRAY_MAP_SIZE) {
return createNodes(ownerID, entries, key, value);
@@ -36447,9 +36443,9 @@ module.exports = /******/ (function(modules) {
}
if (
exists &&
- !newNode &&
- nodes.length === 2 &&
- isLeafNode(nodes[idx ^ 1])
+ !newNode &&
+ nodes.length === 2 &&
+ isLeafNode(nodes[idx ^ 1])
) {
return nodes[idx ^ 1];
}
@@ -36642,8 +36638,7 @@ module.exports = /******/ (function(modules) {
SetRef(didAlter);
if (removed) {
SetRef(didChangeSize);
- return;
- // undefined
+ return; // undefined
}
if (keyMatch) {
if (ownerID && ownerID === this.ownerID) {
@@ -37036,7 +37031,6 @@ module.exports = /******/ (function(modules) {
List.prototype.toString = function() {
return this.__toString('List [', ']');
};
-
// @pragma Access
List.prototype.get = function(index, notSetValue) {
index = wrapIndex(this, index);
@@ -37403,7 +37397,6 @@ module.exports = /******/ (function(modules) {
if (nodeHas && node.array[idx] === value) {
return node;
}
-
SetRef(didAlter);
newNode = editableVNode(node, ownerID);
if (value === undefined && idx === newNode.array.length - 1) {
@@ -37487,9 +37480,9 @@ module.exports = /******/ (function(modules) {
: newTailOffset > oldTailOffset ? new VNode([], owner) : oldTail; // Merge Tail into tree.
if (
oldTail &&
- newTailOffset > oldTailOffset &&
- newOrigin < oldCapacity &&
- oldTail.array.length
+ newTailOffset > oldTailOffset &&
+ newOrigin < oldCapacity &&
+ oldTail.array.length
) {
newRoot = editableVNode(newRoot, owner);
var node = newRoot;
@@ -37598,7 +37591,6 @@ module.exports = /******/ (function(modules) {
OrderedMap.prototype.toString = function() {
return this.__toString('OrderedMap {', '}');
};
-
// @pragma Access
OrderedMap.prototype.get = function(k, notSetValue) {
var index = this._map.get(k);
@@ -38311,8 +38303,8 @@ module.exports = /******/ (function(modules) {
var singleton = iters[0];
if (
singleton === iterable ||
- isKeyedIterable && isKeyed(singleton) ||
- isIndexed(iterable) && isIndexed(singleton)
+ isKeyedIterable && isKeyed(singleton) ||
+ isIndexed(iterable) && isIndexed(singleton)
) {
return singleton;
}
@@ -38632,7 +38624,6 @@ module.exports = /******/ (function(modules) {
Record.prototype.toString = function() {
return this.__toString(recordName(this) + ' {', '}');
};
-
// @pragma Access
Record.prototype.has = function(k) {
return this._defaultValues.hasOwnProperty(k);
@@ -38772,7 +38763,6 @@ module.exports = /******/ (function(modules) {
Set.prototype.toString = function() {
return this.__toString('Set {', '}');
};
-
// @pragma Access
Set.prototype.has = function(value) {
return this._map.has(value);
@@ -38988,7 +38978,6 @@ module.exports = /******/ (function(modules) {
Stack.prototype.toString = function() {
return this.__toString('Stack [', ']');
};
-
// @pragma Access
Stack.prototype.get = function(index, notSetValue) {
var head = this._head;
@@ -39174,7 +39163,6 @@ module.exports = /******/ (function(modules) {
return ctor;
}
Iterable.Iterator = Iterator;
-
mixin(Iterable, {
// ### Conversion to other types
toArray: function() {
@@ -39543,7 +39531,8 @@ module.exports = /******/ (function(modules) {
return this.toString();
};
IterablePrototype.chain = IterablePrototype.flatMap;
- IterablePrototype.contains = IterablePrototype.includes; // Temporary warning about using length
+ IterablePrototype.contains = IterablePrototype.includes;
+ // Temporary warning about using length
(function() {
try {
Object.defineProperty(IterablePrototype, 'length', {
@@ -39818,7 +39807,8 @@ module.exports = /******/ (function(modules) {
return h;
}
function hashMerge(a, b) {
- return a ^ b + 0x9e3779b9 + (a << 6) + (a >> 2) | 0; // int
+ return a ^ b + 0x9e3779b9 + (a << 6) + (a >> 2) | 0;
+ // int
}
var Immutable = {
Iterable: Iterable,
@@ -40052,7 +40042,7 @@ module.exports = /******/ (function(modules) {
}
if (
this.props.searching &&
- this.props.roots.count() > MAX_SEARCH_ROOTS
+ this.props.roots.count() > MAX_SEARCH_ROOTS
) {
return React.createElement(
'div',
@@ -40619,7 +40609,13 @@ module.exports = /******/ (function(modules) {
props: node.get('props'),
}),
!content && '/',
- React.createElement('span', {style: tagStyle}, '>'),
+ React.createElement(
+ 'span',
+ {
+ style: tagStyle,
+ },
+ '>',
+ ),
),
content &&
[
@@ -40921,7 +40917,8 @@ module.exports = /******/ (function(modules) {
backgroundColor: '#eee',
},
};
- module.exports = WrappedNode; /***/
+ module.exports = WrappedNode;
+ /***/
} /* 263 */,
/***/ function(module, exports, __webpack_require__) {
/**
@@ -41028,10 +41025,10 @@ module.exports = /******/ (function(modules) {
var props = this.props.props;
if (
!props ||
- (typeof props === 'undefined'
- ? 'undefined'
- : _typeof(props)) !==
- 'object'
+ (typeof props === 'undefined'
+ ? 'undefined'
+ : _typeof(props)) !==
+ 'object'
) {
return React.createElement('span', null);
}
@@ -41104,7 +41101,6 @@ module.exports = /******/ (function(modules) {
return function(Constructor, protoProps, staticProps) {
if (protoProps) defineProperties(Constructor.prototype, protoProps);
if (staticProps) defineProperties(Constructor, staticProps);
-
return Constructor;
};
})();
@@ -41278,7 +41274,6 @@ module.exports = /******/ (function(modules) {
return function(Constructor, protoProps, staticProps) {
if (protoProps) defineProperties(Constructor.prototype, protoProps);
if (staticProps) defineProperties(Constructor, staticProps);
-
return Constructor;
};
})();
@@ -41408,7 +41403,6 @@ module.exports = /******/ (function(modules) {
return function(Constructor, protoProps, staticProps) {
if (protoProps) defineProperties(Constructor.prototype, protoProps);
if (staticProps) defineProperties(Constructor, staticProps);
-
return Constructor;
};
})();
@@ -41635,7 +41629,6 @@ module.exports = /******/ (function(modules) {
return function(Constructor, protoProps, staticProps) {
if (protoProps) defineProperties(Constructor.prototype, protoProps);
if (staticProps) defineProperties(Constructor, staticProps);
-
return Constructor;
};
})();
@@ -41679,7 +41672,6 @@ module.exports = /******/ (function(modules) {
var _require2 = __webpack_require__(257);
var Map = _require2.Map;
var Set = _require2.Set;
-
var List = _require2.List;
var assign = __webpack_require__(206);
var nodeMatchesText = __webpack_require__(269);
@@ -41743,7 +41735,6 @@ module.exports = /******/ (function(modules) {
_this._nodes = new Map();
_this._parents = new Map();
_this._nodesByName = new Map();
-
_this._bridge = bridge; // Public state
_this.roots = new List();
_this.contextMenu = null;
@@ -41795,7 +41786,6 @@ module.exports = /******/ (function(modules) {
_this._establishConnection();
_this._eventQueue = [];
_this._eventTimer = null;
-
return _this;
} // Public state // an object describing the capabilities of the inspected runtime.
_createClass(Store, [
@@ -41832,7 +41822,7 @@ module.exports = /******/ (function(modules) {
});
this._eventQueue = [];
}
- // Public actions,
+ // Public actions,,,
},
{
key: 'scrollToNode',
@@ -41880,8 +41870,8 @@ module.exports = /******/ (function(modules) {
} else {
if (
this.searchRoots &&
- needle.indexOf(this.searchText.toLowerCase()) === 0 &&
- (!this.regexState || !this.regexState.enabled)
+ needle.indexOf(this.searchText.toLowerCase()) === 0 &&
+ (!this.regexState || !this.regexState.enabled)
) {
this.searchRoots = this.searchRoots.filter(function(item) {
var node = _this4.get(item);
@@ -42037,9 +42027,9 @@ module.exports = /******/ (function(modules) {
}
if (
typeof children === 'string' ||
- !children ||
- !children.length ||
- node.get('collapsed')
+ !children ||
+ !children.length ||
+ node.get('collapsed')
) {
return false;
}
@@ -42173,7 +42163,7 @@ module.exports = /******/ (function(modules) {
this.highlight(id);
}
}
- // Public methods,
+ // Public methods,,,
},
{
key: 'get',
@@ -42200,9 +42190,9 @@ module.exports = /******/ (function(modules) {
}
if (
nodeType === 'Native' &&
- (!up ||
- this.get(this._parents.get(id)).get('nodeType') !==
- 'NativeWrapper')
+ (!up ||
+ this.get(this._parents.get(id)).get('nodeType') !==
+ 'NativeWrapper')
) {
return id;
}
@@ -42278,7 +42268,7 @@ module.exports = /******/ (function(modules) {
this.refreshSearch = true;
this.changeSearch(this.searchText);
}
- // Private stuff,
+ // Private stuff,,,
},
{
key: '_establishConnection',
@@ -42366,12 +42356,12 @@ module.exports = /******/ (function(modules) {
var childID = childNode.get('id');
if (
_this8.searchRoots &&
- nodeMatchesText(
- childNode,
- _this8.searchText.toLowerCase(),
- childID,
- _this8,
- )
+ nodeMatchesText(
+ childNode,
+ _this8.searchText.toLowerCase(),
+ childID,
+ _this8,
+ )
) {
_this8.searchRoots = _this8.searchRoots.push(childID);
_this8.emit('searchRoots');
@@ -42451,8 +42441,8 @@ module.exports = /******/ (function(modules) {
var wrapper = store.get(store.getParent(key));
if (
node.get('nodeType') === 'Native' &&
- wrapper &&
- wrapper.get('nodeType') === 'NativeWrapper'
+ wrapper &&
+ wrapper.get('nodeType') === 'NativeWrapper'
) {
return false;
}
@@ -42499,8 +42489,7 @@ module.exports = /******/ (function(modules) {
'72': 'left', // 'h',
'74': 'down', // 'j',
'75': 'up', // 'k',
- '76': 'right',
- // 'l',
+ '76': 'right', // 'l',
'37': 'left',
'38': 'up',
'39': 'right',
@@ -42569,7 +42558,6 @@ module.exports = /******/ (function(modules) {
store.isBottomTagSelected = false;
}
store.toggleCollapse(id);
-
return undefined;
}
var children = node.get('children');
@@ -42725,7 +42713,6 @@ module.exports = /******/ (function(modules) {
return function(Constructor, protoProps, staticProps) {
if (protoProps) defineProperties(Constructor.prototype, protoProps);
if (staticProps) defineProperties(Constructor, staticProps);
-
return Constructor;
};
})();
@@ -42955,7 +42942,7 @@ module.exports = /******/ (function(modules) {
var minChunkSize = this._paused ? 50 : 100;
while (
this._buffer.length &&
- (deadline.timeRemaining() > 0 || deadline.didTimeout)
+ (deadline.timeRemaining() > 0 || deadline.didTimeout)
) {
var take = Math.min(
this._buffer.length,
@@ -43136,9 +43123,9 @@ module.exports = /******/ (function(modules) {
}
if (
isFn &&
- (name === 'arguments' ||
- name === 'callee' ||
- name === 'caller')
+ (name === 'arguments' ||
+ name === 'callee' ||
+ name === 'caller')
) {
return;
}
@@ -43154,9 +43141,9 @@ module.exports = /******/ (function(modules) {
) {
if (
pIsFn &&
- (name === 'arguments' ||
- name === 'callee' ||
- name === 'caller')
+ (name === 'arguments' ||
+ name === 'callee' ||
+ name === 'caller')
) {
return;
}
@@ -43221,7 +43208,6 @@ module.exports = /******/ (function(modules) {
obj[last] = replace;
});
}
-
module.exports = hydrate; /***/
} /***/ /* 274 */,
function(module, exports) {
@@ -43279,8 +43265,8 @@ module.exports = /******/ (function(modules) {
}
if (
!data ||
- (typeof data === 'undefined' ? 'undefined' : _typeof(data)) !==
- 'object'
+ (typeof data === 'undefined' ? 'undefined' : _typeof(data)) !==
+ 'object'
) {
if (typeof data === 'string' && data.length > 500) {
return data.slice(0, 500) + '...';
@@ -43325,8 +43311,8 @@ module.exports = /******/ (function(modules) {
} // TODO when this is in the iframe window, we can just use Object
if (
data.constructor &&
- typeof data.constructor === 'function' &&
- data.constructor.name !== 'Object'
+ typeof data.constructor === 'function' &&
+ data.constructor.name !== 'Object'
) {
cleaned.push(path);
return {
@@ -43451,7 +43437,6 @@ module.exports = /******/ (function(modules) {
return function(Constructor, protoProps, staticProps) {
if (protoProps) defineProperties(Constructor.prototype, protoProps);
if (staticProps) defineProperties(Constructor, staticProps);
-
return Constructor;
};
})();
@@ -43619,7 +43604,6 @@ module.exports = /******/ (function(modules) {
return function(Constructor, protoProps, staticProps) {
if (protoProps) defineProperties(Constructor.prototype, protoProps);
if (staticProps) defineProperties(Constructor, staticProps);
-
return Constructor;
};
})();
@@ -43785,7 +43769,6 @@ module.exports = /******/ (function(modules) {
return function(Constructor, protoProps, staticProps) {
if (protoProps) defineProperties(Constructor.prototype, protoProps);
if (staticProps) defineProperties(Constructor, staticProps);
-
return Constructor;
};
})();
@@ -43925,7 +43908,6 @@ module.exports = /******/ (function(modules) {
return function(Constructor, protoProps, staticProps) {
if (protoProps) defineProperties(Constructor.prototype, protoProps);
if (staticProps) defineProperties(Constructor, staticProps);
-
return Constructor;
};
})();
@@ -44040,7 +44022,6 @@ module.exports = /******/ (function(modules) {
return function(Constructor, protoProps, staticProps) {
if (protoProps) defineProperties(Constructor.prototype, protoProps);
if (staticProps) defineProperties(Constructor, staticProps);
-
return Constructor;
};
})();
@@ -44167,7 +44148,6 @@ module.exports = /******/ (function(modules) {
return function(Constructor, protoProps, staticProps) {
if (protoProps) defineProperties(Constructor.prototype, protoProps);
if (staticProps) defineProperties(Constructor, staticProps);
-
return Constructor;
};
})();
@@ -44295,7 +44275,6 @@ module.exports = /******/ (function(modules) {
bridge.on('relay:failure', function(_ref2) {
var id = _ref2.id;
var error = _ref2.error;
-
var end = _ref2.end;
_this.queries = _this.queries.mergeIn([id], new Map({
status: 'failure',
@@ -44310,7 +44289,7 @@ module.exports = /******/ (function(modules) {
bridge.on('mount', function(data) {
if (
!data.props ||
- !data.props.relay && data.name.indexOf('Relay(') !== 0
+ !data.props.relay && data.name.indexOf('Relay(') !== 0
) {
return;
// not a relay child
@@ -44522,7 +44501,6 @@ module.exports = /******/ (function(modules) {
return function(Constructor, protoProps, staticProps) {
if (protoProps) defineProperties(Constructor.prototype, protoProps);
if (staticProps) defineProperties(Constructor, staticProps);
-
return Constructor;
};
})();
@@ -44655,7 +44633,6 @@ module.exports = /******/ (function(modules) {
return function(Constructor, protoProps, staticProps) {
if (protoProps) defineProperties(Constructor.prototype, protoProps);
if (staticProps) defineProperties(Constructor, staticProps);
-
return Constructor;
};
})();
@@ -44852,7 +44829,6 @@ module.exports = /******/ (function(modules) {
return function(Constructor, protoProps, staticProps) {
if (protoProps) defineProperties(Constructor.prototype, protoProps);
if (staticProps) defineProperties(Constructor, staticProps);
-
return Constructor;
};
})();
@@ -45027,7 +45003,6 @@ module.exports = /******/ (function(modules) {
return function(Constructor, protoProps, staticProps) {
if (protoProps) defineProperties(Constructor.prototype, protoProps);
if (staticProps) defineProperties(Constructor, staticProps);
-
return Constructor;
};
})();
@@ -45294,7 +45269,6 @@ module.exports = /******/ (function(modules) {
return function(Constructor, protoProps, staticProps) {
if (protoProps) defineProperties(Constructor.prototype, protoProps);
if (staticProps) defineProperties(Constructor, staticProps);
-
return Constructor;
};
})();
diff --git a/pkg/nuclide-react-native/lib/debugging/DebugUiComponent.js b/pkg/nuclide-react-native/lib/debugging/DebugUiComponent.js
index 8c0bc90..ad87b9f 100644
--- a/pkg/nuclide-react-native/lib/debugging/DebugUiComponent.js
+++ b/pkg/nuclide-react-native/lib/debugging/DebugUiComponent.js
@@ -92,6 +92,7 @@ export class DebugUiComponent extends React.Component {
<div className="text-left text-smaller text-subtle">
After starting the debugger, enable JS debugging from the developer menu of your React
+
Native app
</div>
<div className="nuclide-react-native-debugging-launch-attach-actions">
diff --git a/pkg/nuclide-react-native/lib/debugging/executor.js b/pkg/nuclide-react-native/lib/debugging/executor.js
index 3e9d222..a1893aa 100644
--- a/pkg/nuclide-react-native/lib/debugging/executor.js
+++ b/pkg/nuclide-react-native/lib/debugging/executor.js
@@ -67,7 +67,7 @@ process.on('message', request => {
try {
if (
currentContext != null &&
- typeof currentContext.__fbBatchedBridge === 'object'
+ typeof currentContext.__fbBatchedBridge === 'object'
) {
returnValue = currentContext.__fbBatchedBridge[request.method].apply(
null,
diff --git a/pkg/nuclide-react-native/lib/debugging/runApp.js b/pkg/nuclide-react-native/lib/debugging/runApp.js
index 8c4fa42..f873dee 100644
--- a/pkg/nuclide-react-native/lib/debugging/runApp.js
+++ b/pkg/nuclide-react-native/lib/debugging/runApp.js
@@ -71,7 +71,7 @@ function connectToRnApp(): Observable<WS> {
// indefinitely.
if (
error.name === 'PrematureCloseError' ||
- (error: any).code === 'ECONNREFUSED'
+ (error: any).code === 'ECONNREFUSED'
) {
return errorCount;
}
diff --git a/pkg/nuclide-react-native/lib/packager/PackagerActivation.js b/pkg/nuclide-react-native/lib/packager/PackagerActivation.js
index fb7a1d7..4929dd9 100644
--- a/pkg/nuclide-react-native/lib/packager/PackagerActivation.js
+++ b/pkg/nuclide-react-native/lib/packager/PackagerActivation.js
@@ -180,11 +180,10 @@ function getPackagerObservable(
editor.push('--dev');
}
return observeProcess(
- () =>
- safeSpawn(command, args, {
- cwd,
- env: {...process.env, REACT_EDITOR: quote(editor)},
- }),
+ () => safeSpawn(command, args, {
+ cwd,
+ env: {...process.env, REACT_EDITOR: quote(editor)},
+ }),
true, // Kill all descendant processes when unsubscribing
);
})
diff --git a/pkg/nuclide-remote-atom/lib/main.js b/pkg/nuclide-remote-atom/lib/main.js
index d2be116..e786368 100644
--- a/pkg/nuclide-remote-atom/lib/main.js
+++ b/pkg/nuclide-remote-atom/lib/main.js
@@ -111,9 +111,9 @@ function openFile(
if (
isWaiting &&
- featureConfig.get(
- 'nuclide-remote-atom.shouldNotifyWhenCommandLineIsWaitingOnFile',
- )
+ featureConfig.get(
+ 'nuclide-remote-atom.shouldNotifyWhenCommandLineIsWaitingOnFile',
+ )
) {
const notification = atom.notifications.addInfo(
`The command line has opened \`${nuclideUri.getPath(uri)}\`` +
diff --git a/pkg/nuclide-remote-connection/lib/NuclideTextBuffer.js b/pkg/nuclide-remote-connection/lib/NuclideTextBuffer.js
index ce455aa..3eac940 100644
--- a/pkg/nuclide-remote-connection/lib/NuclideTextBuffer.js
+++ b/pkg/nuclide-remote-connection/lib/NuclideTextBuffer.js
@@ -178,7 +178,7 @@ export default class NuclideTextBuffer extends TextBuffer {
setTextViaDiff(newText: string): void {
if (
this.getLineCount() > DIFF_LINE_LIMIT ||
- countOccurrences(newText, '\n') > DIFF_LINE_LIMIT
+ countOccurrences(newText, '\n') > DIFF_LINE_LIMIT
) {
this.setText(newText);
} else {
@@ -212,8 +212,8 @@ export default class NuclideTextBuffer extends TextBuffer {
// Otherwise, what we wrote and what we read should match exactly.
if (
this._saveID !== previousSaveID ||
- previousContents === this.cachedDiskContents ||
- this._pendingSaveContents === this.cachedDiskContents
+ previousContents === this.cachedDiskContents ||
+ this._pendingSaveContents === this.cachedDiskContents
) {
this.conflict = false;
return;
diff --git a/pkg/nuclide-remote-connection/lib/SshHandshake.js b/pkg/nuclide-remote-connection/lib/SshHandshake.js
index 30f71f3..4eaa772 100644
--- a/pkg/nuclide-remote-connection/lib/SshHandshake.js
+++ b/pkg/nuclide-remote-connection/lib/SshHandshake.js
@@ -183,7 +183,7 @@ export class SshHandshake {
// Upon authentication failure, fall back to using a password.
if (
errorLevel === 'client-authentication' &&
- this._passwordRetryCount < PASSWORD_RETRIES
+ this._passwordRetryCount < PASSWORD_RETRIES
) {
const config = this._config;
const retryText = this._passwordRetryCount ? ' again' : '';
diff --git a/pkg/nuclide-remote-projects/lib/ConnectionDetailsPrompt.js b/pkg/nuclide-remote-projects/lib/ConnectionDetailsPrompt.js
index 857c858..c901cb3 100644
--- a/pkg/nuclide-remote-projects/lib/ConnectionDetailsPrompt.js
+++ b/pkg/nuclide-remote-projects/lib/ConnectionDetailsPrompt.js
@@ -103,11 +103,11 @@ export default class ConnectionDetailsPrompt extends React.Component {
if (
prevProps.indexOfSelectedConnectionProfile !==
this.props.indexOfSelectedConnectionProfile ||
- // If the connection profiles changed length, the effective selected profile also changed.
- prevProps.connectionProfiles != null &&
- this.props.connectionProfiles != null &&
- prevProps.connectionProfiles.length !==
- this.props.connectionProfiles.length
+ // If the connection profiles changed length, the effective selected profile also changed.
+ prevProps.connectionProfiles != null &&
+ this.props.connectionProfiles != null &&
+ prevProps.connectionProfiles.length !==
+ this.props.connectionProfiles.length
) {
const existingConnectionDetailsForm = this.refs[
'connection-details-form'
@@ -128,7 +128,7 @@ export default class ConnectionDetailsPrompt extends React.Component {
if (
prevProps.connectionProfiles !== this.props.connectionProfiles &&
- this.props.connectionProfiles
+ this.props.connectionProfiles
) {
this.setState({
IPs: getIPsForHosts(
@@ -152,8 +152,8 @@ export default class ConnectionDetailsPrompt extends React.Component {
// profile.
if (
this.props.connectionProfiles != null &&
- this.props.connectionProfiles.length > 0 &&
- this.props.indexOfSelectedConnectionProfile != null
+ this.props.connectionProfiles.length > 0 &&
+ this.props.indexOfSelectedConnectionProfile != null
) {
const selectedProfile = this.props.connectionProfiles[
this.props.indexOfSelectedConnectionProfile
diff --git a/pkg/nuclide-remote-projects/lib/ConnectionDialog.js b/pkg/nuclide-remote-projects/lib/ConnectionDialog.js
index 4d82aee..640eea8 100644
--- a/pkg/nuclide-remote-projects/lib/ConnectionDialog.js
+++ b/pkg/nuclide-remote-projects/lib/ConnectionDialog.js
@@ -155,12 +155,11 @@ export default class ConnectionDialog extends React.Component {
indexOfSelectedConnectionProfile = -1;
} else if (
this.props.connectionProfiles == null ||
- // The current selection is outside the bounds of the next profiles list
- indexOfSelectedConnectionProfile >
- nextProps.connectionProfiles.length - 1 ||
- // The next profiles list is longer than before, a new one was added
- nextProps.connectionProfiles.length >
- this.props.connectionProfiles.length
+ // The current selection is outside the bounds of the next profiles list
+ indexOfSelectedConnectionProfile >
+ nextProps.connectionProfiles.length - 1 ||
+ // The next profiles list is longer than before, a new one was added
+ nextProps.connectionProfiles.length > this.props.connectionProfiles.length
) {
// Select the final connection profile in the list because one of the above conditions means
// the current selected index is outdated.
@@ -176,10 +175,10 @@ export default class ConnectionDialog extends React.Component {
this._focus();
} else if (
this.state.mode === REQUEST_CONNECTION_DETAILS &&
- this.state.indexOfSelectedConnectionProfile ===
- prevState.indexOfSelectedConnectionProfile &&
- !this.state.isDirty &&
- prevState.isDirty
+ this.state.indexOfSelectedConnectionProfile ===
+ prevState.indexOfSelectedConnectionProfile &&
+ !this.state.isDirty &&
+ prevState.isDirty
) {
// When editing a profile and clicking "Save", the Save button disappears. Focus the primary
// button after re-rendering so focus is on a logical element.
@@ -286,7 +285,7 @@ export default class ConnectionDialog extends React.Component {
let selectedProfile;
if (
this.state.indexOfSelectedConnectionProfile >= 0 &&
- this.props.connectionProfiles != null
+ this.props.connectionProfiles != null
) {
selectedProfile = this.props.connectionProfiles[
this.state.indexOfSelectedConnectionProfile
diff --git a/pkg/nuclide-remote-projects/lib/connection-profile-utils.js b/pkg/nuclide-remote-projects/lib/connection-profile-utils.js
index f479d4b..4d5ed84 100644
--- a/pkg/nuclide-remote-projects/lib/connection-profile-utils.js
+++ b/pkg/nuclide-remote-projects/lib/connection-profile-utils.js
@@ -72,7 +72,7 @@ export function getDefaultConnectionProfile(
let remoteServerCommand = currentOfficialRSC;
if (
lastOfficialRemoteServerCommand === currentOfficialRSC &&
- lastConfig.remoteServerCommand
+ lastConfig.remoteServerCommand
) {
remoteServerCommand = lastConfig.remoteServerCommand;
}
diff --git a/pkg/nuclide-remote-projects/lib/connection-types.js b/pkg/nuclide-remote-projects/lib/connection-types.js
index 264c91a..7762b8b 100644
--- a/pkg/nuclide-remote-projects/lib/connection-types.js
+++ b/pkg/nuclide-remote-projects/lib/connection-types.js
@@ -10,13 +10,10 @@
import type {SshHandshake} from '../../nuclide-remote-connection';
-export type NuclideRemoteAuthMethods = /* $FlowFixMe: Flow can't find the PASSWORD property on SupportedMethods.*/
-
- | SshHandshake.SupportedMethods.PASSWORD
- | /* $FlowFixMe: Flow can't find the SSL_AGENT property on SupportedMethods.*/
- SshHandshake.SupportedMethods.SSL_AGENT
- | /* $FlowFixMe: Flow can't find the PRIVATE_KEY property on SupportedMethods.*/
- SshHandshake.SupportedMethods.PRIVATE_KEY;
+export type NuclideRemoteAuthMethods /* $FlowFixMe: Flow can't find the PASSWORD property on SupportedMethods.*/ =
+ | SshHandshake.SupportedMethods.PASSWORD /* $FlowFixMe: Flow can't find the SSL_AGENT property on SupportedMethods.*/
+ | SshHandshake.SupportedMethods.SSL_AGENT /* $FlowFixMe: Flow can't find the PRIVATE_KEY property on SupportedMethods.*/
+ | SshHandshake.SupportedMethods.PRIVATE_KEY;
export type NuclideRemoteConnectionParams = {
username: string,
diff --git a/pkg/nuclide-remote-projects/lib/form-validation-utils.js b/pkg/nuclide-remote-projects/lib/form-validation-utils.js
index 4e82d2d..59be2a0 100644
--- a/pkg/nuclide-remote-projects/lib/form-validation-utils.js
+++ b/pkg/nuclide-remote-projects/lib/form-validation-utils.js
@@ -77,7 +77,7 @@ export function validateFormInputs(
}
if (
authMethod === SshHandshake.SupportedMethods.PRIVATE_KEY &&
- !connectionDetails.pathToPrivateKey
+ !connectionDetails.pathToPrivateKey
) {
missingFields.push(
'Private Key File (required for the authentication method you selected)',
@@ -100,7 +100,7 @@ export function validateFormInputs(
// 1. If a password is provided, all parts of the profile will be save except the password.
if (
authMethod === SshHandshake.SupportedMethods.PASSWORD &&
- connectionDetails.password
+ connectionDetails.password
) {
warningMessage += '* You provided a password for this profile. ' +
'For security, Nuclide will save the other parts of this profile, ' +
@@ -109,7 +109,7 @@ export function validateFormInputs(
// 2. Save the remote server command only if it is changed.
if (
connectionDetails.remoteServerCommand &&
- connectionDetails.remoteServerCommand !== defaultRemoteServerCommand
+ connectionDetails.remoteServerCommand !== defaultRemoteServerCommand
) {
profileParams.remoteServerCommand = connectionDetails.remoteServerCommand;
} else {
diff --git a/pkg/nuclide-remote-projects/lib/main.js b/pkg/nuclide-remote-projects/lib/main.js
index 474b577..8808bfe 100644
--- a/pkg/nuclide-remote-projects/lib/main.js
+++ b/pkg/nuclide-remote-projects/lib/main.js
@@ -190,7 +190,7 @@ function closeOpenFilesForRemoteProject(connection: RemoteConnection): void {
// Only clean up these files if we're the only connection left.
if (
connection.isOnlyConnection() ||
- nuclideUri.contains(connection.getUriForInitialWorkingDirectory(), uri)
+ nuclideUri.contains(connection.getUriForInitialWorkingDirectory(), uri)
) {
pane.removeItem(editor);
editor.destroy();
@@ -213,7 +213,7 @@ function deleteDummyRemoteRootDirectories() {
for (const directory of atom.project.getDirectories()) {
if (
nuclideUri.isRemote(directory.getPath()) &&
- !RemoteDirectory.isRemoteDirectory(directory)
+ !RemoteDirectory.isRemoteDirectory(directory)
) {
atom.project.removePath(directory.getPath());
}
@@ -345,7 +345,7 @@ async function reloadRemoteProjects(
const {cwd, host, displayTitle} = config;
if (
connection.getPathForInitialWorkingDirectory() !== cwd &&
- connection.getRemoteHostname() === host
+ connection.getRemoteHostname() === host
) {
// eslint-disable-next-line no-await-in-loop
const subConnection = await RemoteConnection.createConnectionBySavedConfig(
@@ -475,7 +475,7 @@ export function activate(
// directory. We can't let that create a file with the initial working directory path.
if (
connection != null &&
- uri === connection.getUriForInitialWorkingDirectory()
+ uri === connection.getUriForInitialWorkingDirectory()
) {
const blankEditor = atom.workspace.buildTextEditor({});
// No matter what we do here, Atom is going to create a blank editor.
diff --git a/pkg/nuclide-remote-projects/lib/utils.js b/pkg/nuclide-remote-projects/lib/utils.js
index 407fbb8..6104300 100644
--- a/pkg/nuclide-remote-projects/lib/utils.js
+++ b/pkg/nuclide-remote-projects/lib/utils.js
@@ -43,8 +43,8 @@ export function sanitizeNuclideUri(uri_: string): string {
// Add the missing slash, if removed through a path.normalize() call.
if (
uri.startsWith(NUCLIDE_PROTOCOL_PREFIX) &&
- uri[NUCLIDE_PROTOCOL_PREFIX_LENGTH] !==
- '/' /* protocol missing last slash */
+ uri[NUCLIDE_PROTOCOL_PREFIX_LENGTH] !==
+ '/' /* protocol missing last slash */
) {
uri = uri.substring(0, NUCLIDE_PROTOCOL_PREFIX_LENGTH) +
'/' +
diff --git a/pkg/nuclide-server/lib/XhrConnectionHeartbeat.js b/pkg/nuclide-server/lib/XhrConnectionHeartbeat.js
index 29f1bb5..eeaca17 100644
--- a/pkg/nuclide-server/lib/XhrConnectionHeartbeat.js
+++ b/pkg/nuclide-server/lib/XhrConnectionHeartbeat.js
@@ -66,7 +66,7 @@ export class XhrConnectionHeartbeat {
this._lastHeartbeatTime = this._lastHeartbeatTime || now;
if (
this._lastHeartbeat === 'away' ||
- now - this._lastHeartbeatTime > MAX_HEARTBEAT_AWAY_RECONNECT_MS
+ now - this._lastHeartbeatTime > MAX_HEARTBEAT_AWAY_RECONNECT_MS
) {
// Trigger a websocket reconnect.
this._emitter.emit('reconnect');
diff --git a/pkg/nuclide-settings/lib/SettingsPaneItem.js b/pkg/nuclide-settings/lib/SettingsPaneItem.js
index 222ae4c..e3aff10 100644
--- a/pkg/nuclide-settings/lib/SettingsPaneItem.js
+++ b/pkg/nuclide-settings/lib/SettingsPaneItem.js
@@ -100,10 +100,10 @@ export default class NuclideSettingsPaneItem extends React.Component {
const description = getDescription(schema);
if (
this.state == null ||
- categoryMatches ||
- packageMatches ||
- matchesFilter(this.state.filter, title) ||
- matchesFilter(this.state.filter, description)
+ categoryMatches ||
+ packageMatches ||
+ matchesFilter(this.state.filter, title) ||
+ matchesFilter(this.state.filter, description)
) {
settings[settingName] = {
name: settingName,
diff --git a/pkg/nuclide-source-control-helpers/lib/hg-repository.js b/pkg/nuclide-source-control-helpers/lib/hg-repository.js
index 88e3975..c009115 100644
--- a/pkg/nuclide-source-control-helpers/lib/hg-repository.js
+++ b/pkg/nuclide-source-control-helpers/lib/hg-repository.js
@@ -35,7 +35,7 @@ export default function findHgRepository(
const config = ini.parse(hgrc);
if (
typeof config.paths === 'object' &&
- typeof config.paths.default === 'string'
+ typeof config.paths.default === 'string'
) {
originURL = config.paths.default;
}
diff --git a/pkg/nuclide-source-control-side-bar/lib/RepositorySectionComponent.js b/pkg/nuclide-source-control-side-bar/lib/RepositorySectionComponent.js
index 0f4f00d..9cd14ed 100644
--- a/pkg/nuclide-source-control-side-bar/lib/RepositorySectionComponent.js
+++ b/pkg/nuclide-source-control-side-bar/lib/RepositorySectionComponent.js
@@ -242,8 +242,8 @@ export default class RepositorySectionComponent extends React.Component {
);
if (
repository != null &&
- uncommittedChanges != null &&
- uncommittedChanges.size > 0
+ uncommittedChanges != null &&
+ uncommittedChanges.size > 0
) {
uncommittedChangesSection = (
<Section
diff --git a/pkg/nuclide-source-control-side-bar/lib/SideBarComponent.js b/pkg/nuclide-source-control-side-bar/lib/SideBarComponent.js
index bea995d..f28f78e 100644
--- a/pkg/nuclide-source-control-side-bar/lib/SideBarComponent.js
+++ b/pkg/nuclide-source-control-side-bar/lib/SideBarComponent.js
@@ -297,7 +297,7 @@ export default class SideBarComponent extends React.Component {
bookmarks = this.props.projectBookmarks.get(repository.getPath());
if (
this.state.selectedItem != null &&
- this.state.selectedItem.repository === repository
+ this.state.selectedItem.repository === repository
) {
selectedItem = this.state.selectedItem;
}
diff --git a/pkg/nuclide-task-runner/lib/main.js b/pkg/nuclide-task-runner/lib/main.js
index ab1347d..77f7a8e 100644
--- a/pkg/nuclide-task-runner/lib/main.js
+++ b/pkg/nuclide-task-runner/lib/main.js
@@ -337,7 +337,7 @@ function getInitialVisibility(
// `atom.project.getDirectories()[0]`, but using explicitly serialized package state is better.
if (
serializedState &&
- typeof serializedState.previousSessionVisible === 'boolean'
+ typeof serializedState.previousSessionVisible === 'boolean'
) {
return serializedState.previousSessionVisible;
} else {
diff --git a/pkg/nuclide-task-runner/lib/redux/Epics.js b/pkg/nuclide-task-runner/lib/redux/Epics.js
index aa8e30e..364a1d6 100644
--- a/pkg/nuclide-task-runner/lib/redux/Epics.js
+++ b/pkg/nuclide-task-runner/lib/redux/Epics.js
@@ -224,11 +224,7 @@ export function runTaskEpic(
return Observable.empty();
}
- return createTaskObservable(
- taskMeta,
- store.getState,
- )// Stop listening once the task is done.
- .takeUntil(
+ return createTaskObservable(taskMeta, store.getState).takeUntil(
actions.ofType(
Actions.TASK_COMPLETED,
Actions.TASK_ERRORED,
@@ -271,8 +267,8 @@ export function toggleToolbarVisibilityEpic(
const taskRunnerState = statesForTaskRunners.get(taskRunner);
if (
taskRunnerState != null &&
- taskRunnerState.enabled &&
- taskRunner !== activeTaskRunner
+ taskRunnerState.enabled &&
+ taskRunner !== activeTaskRunner
) {
return Observable.of(
Actions.setToolbarVisibility(true, true),
diff --git a/pkg/nuclide-test-runner/lib/TestRunnerController.js b/pkg/nuclide-test-runner/lib/TestRunnerController.js
index b7a7426..6f7aae6 100644
--- a/pkg/nuclide-test-runner/lib/TestRunnerController.js
+++ b/pkg/nuclide-test-runner/lib/TestRunnerController.js
@@ -152,7 +152,7 @@ export class TestRunnerController {
// the debugger before running the tests. We do not handle killing the debugger.
if (
this._isSelectedTestRunnerDebuggable() &&
- this._attachDebuggerBeforeRunning
+ this._attachDebuggerBeforeRunning
) {
const isAttached = await this._isDebuggerAttached(
selectedTestRunner.debuggerProviderName,
@@ -345,7 +345,7 @@ export class TestRunnerController {
let progressValue;
if (
this._testSuiteModel &&
- this._executionState === TestRunnerPanel.ExecutionState.RUNNING
+ this._executionState === TestRunnerPanel.ExecutionState.RUNNING
) {
progressValue = this._testSuiteModel.progressPercent();
} else {
diff --git a/pkg/nuclide-ui/AtomInput.js b/pkg/nuclide-ui/AtomInput.js
index ead050c..d4a8753 100644
--- a/pkg/nuclide-ui/AtomInput.js
+++ b/pkg/nuclide-ui/AtomInput.js
@@ -194,19 +194,17 @@ export class AtomInput extends React.Component {
),
});
- return /* Because the contents of `<atom-text-editor>` elements are managed by its custom web*/
+ return; /* Because the contents of `<atom-text-editor>` elements are managed by its custom web*/
/* component class when "Use Shadow DOM" is disabled, this element should never have children.*/
/* If an element has no children, React guarantees it will never re-render the element (which*/
/* would wipe out the web component's work in this case).*/
- (
- <atom-text-editor
- class={className}
- mini
- onClick={this.props.onClick}
- onFocus={this.props.onFocus}
- onBlur={this.props.onBlur}
- />
- );
+ <atom-text-editor
+ class={className}
+ mini
+ onClick={this.props.onClick}
+ onFocus={this.props.onFocus}
+ onBlur={this.props.onBlur}
+ />;
}
getText(): string {
diff --git a/pkg/nuclide-ui/AtomTextEditor.js b/pkg/nuclide-ui/AtomTextEditor.js
index d2e3300..0b193b8 100644
--- a/pkg/nuclide-ui/AtomTextEditor.js
+++ b/pkg/nuclide-ui/AtomTextEditor.js
@@ -171,7 +171,7 @@ export class AtomTextEditor extends React.Component {
componentWillReceiveProps(nextProps: Props): void {
if (
nextProps.textBuffer !== this.props.textBuffer ||
- nextProps.readOnly !== this.props.readOnly
+ nextProps.readOnly !== this.props.readOnly
) {
const previousTextContents = this.getTextBuffer().getText();
const nextTextContents = nextProps.textBuffer == null
diff --git a/pkg/nuclide-ui/ChangedFilesList.js b/pkg/nuclide-ui/ChangedFilesList.js
index 10eea2a..26d0e07 100644
--- a/pkg/nuclide-ui/ChangedFilesList.js
+++ b/pkg/nuclide-ui/ChangedFilesList.js
@@ -102,10 +102,9 @@ export default class ChangedFilesList extends React.Component {
delay: 100,
placement: 'bottom',
})}
- onClick={() =>
- this.setState({
- visiblePagesCount: this.state.visiblePagesCount + 1,
- })}
+ onClick={() => this.setState({
+ visiblePagesCount: this.state.visiblePagesCount + 1,
+ })}
/>
: null;
diff --git a/pkg/nuclide-ui/Combobox.js b/pkg/nuclide-ui/Combobox.js
index 4a880ca..39c40cd 100644
--- a/pkg/nuclide-ui/Combobox.js
+++ b/pkg/nuclide-ui/Combobox.js
@@ -236,7 +236,7 @@ export class Combobox extends React.Component {
return -1;
} else if (
this.state.selectedIndex === -1 ||
- this.state.selectedIndex >= filteredOptions.length
+ this.state.selectedIndex >= filteredOptions.length
) {
// If there are options and the selected index is out of bounds,
// default to the first item.
@@ -281,12 +281,12 @@ export class Combobox extends React.Component {
const {relatedTarget} = event;
if (
relatedTarget == null ||
- // TODO(hansonw): Move this check inside AtomInput.
- // See https://github.com/atom/atom/blob/master/src/text-editor-element.coffee#L145
- relatedTarget.tagName === 'INPUT' &&
- relatedTarget.classList.contains('hidden-input') ||
- // Selecting a menu item registers on the document body.
- relatedTarget === document.body
+ // TODO(hansonw): Move this check inside AtomInput.
+ // See https://github.com/atom/atom/blob/master/src/text-editor-element.coffee#L145
+ relatedTarget.tagName === 'INPUT' &&
+ relatedTarget.classList.contains('hidden-input') ||
+ // Selecting a menu item registers on the document body.
+ relatedTarget === document.body
) {
return;
}
@@ -370,7 +370,7 @@ export class Combobox extends React.Component {
if (
this.state.error != null &&
- this.props.formatRequestOptionsErrorMessage != null
+ this.props.formatRequestOptionsErrorMessage != null
) {
const message = this.props.formatRequestOptionsErrorMessage(
this.state.error,
diff --git a/pkg/nuclide-ui/LazyNestedValueComponent.js b/pkg/nuclide-ui/LazyNestedValueComponent.js
index 5f3a917..89da998 100644
--- a/pkg/nuclide-ui/LazyNestedValueComponent.js
+++ b/pkg/nuclide-ui/LazyNestedValueComponent.js
@@ -169,12 +169,12 @@ class ValueComponent extends React.Component {
const nodeData = expandedValuePaths.get(path);
if (
!this.state.isExpanded &&
- nodeData != null &&
- nodeData.isExpanded &&
- this._shouldFetch() &&
- evaluationResult != null &&
- evaluationResult.objectId != null &&
- fetchChildren != null
+ nodeData != null &&
+ nodeData.isExpanded &&
+ this._shouldFetch() &&
+ evaluationResult != null &&
+ evaluationResult.objectId != null &&
+ fetchChildren != null
) {
invariant(evaluationResult.objectId != null);
this.setState({
@@ -187,9 +187,9 @@ class ValueComponent extends React.Component {
componentWillReceiveProps(nextProps: LazyNestedValueComponentProps): void {
if (
this._shouldFetch() &&
- this.state.isExpanded &&
- nextProps.evaluationResult != null &&
- nextProps.fetchChildren != null
+ this.state.isExpanded &&
+ nextProps.evaluationResult != null &&
+ nextProps.fetchChildren != null
) {
const {objectId} = nextProps.evaluationResult;
if (objectId == null) {
@@ -221,9 +221,9 @@ class ValueComponent extends React.Component {
if (!this.state.isExpanded) {
if (
this._shouldFetch() &&
- typeof fetchChildren === 'function' &&
- evaluationResult != null &&
- evaluationResult.objectId != null
+ typeof fetchChildren === 'function' &&
+ evaluationResult != null &&
+ evaluationResult.objectId != null
) {
newState.children = fetchChildren(evaluationResult.objectId);
}
diff --git a/pkg/nuclide-ui/Modal.js b/pkg/nuclide-ui/Modal.js
index 443a455..3f204b1 100644
--- a/pkg/nuclide-ui/Modal.js
+++ b/pkg/nuclide-ui/Modal.js
@@ -49,7 +49,7 @@ export class Modal extends React.Component {
// If the user clicks outside of the modal, close it.
if (
this._innerElement &&
- !this._innerElement.contains(((event.target: any): Node))
+ !this._innerElement.contains(((event.target: any): Node))
) {
this.props.onDismiss();
}
diff --git a/pkg/nuclide-ui/Portal.js b/pkg/nuclide-ui/Portal.js
index 757647d..09609e9 100644
--- a/pkg/nuclide-ui/Portal.js
+++ b/pkg/nuclide-ui/Portal.js
@@ -42,7 +42,7 @@ export class Portal extends React.Component {
_render(element: ?React.Element<any>, container: HTMLElement): void {
if (
this._container != null &&
- (container !== this._container || element == null)
+ (container !== this._container || element == null)
) {
ReactDOM.unmountComponentAtNode(this._container);
}
diff --git a/pkg/nuclide-ui/ResizableFlexContainer.js b/pkg/nuclide-ui/ResizableFlexContainer.js
index de33d11..e55e4b9 100644
--- a/pkg/nuclide-ui/ResizableFlexContainer.js
+++ b/pkg/nuclide-ui/ResizableFlexContainer.js
@@ -83,10 +83,11 @@ export class ResizableFlexContainer extends React.Component {
const flexScale = flexScales[i];
if (direction === FlexDirections.HORIZONTAL) {
lastPane = lastPane.splitRight({flexScale});
- } else
- /* direction === SplitDirections.VERTICAL */ {
- lastPane = lastPane.splitDown({flexScale});
- }
+ } else {
+ /* direction === SplitDirections.VERTICAL */ lastPane = lastPane.splitDown(
+ {flexScale},
+ );
+ }
this._panes.push(lastPane);
}
startingPane.setFlexScale(flexScales[0]);
diff --git a/pkg/nuclide-ui/Table.js b/pkg/nuclide-ui/Table.js
index 956b997..dd53b75 100644
--- a/pkg/nuclide-ui/Table.js
+++ b/pkg/nuclide-ui/Table.js
@@ -218,8 +218,8 @@ export class Table extends React.Component {
_handleResizerGlobalMouseMove(event: MouseEvent): void {
if (
this._resizeStartX == null ||
- this._tableWidth == null ||
- this._columnBeingResized == null
+ this._tableWidth == null ||
+ this._columnBeingResized == null
) {
return;
}
@@ -324,7 +324,7 @@ export class Table extends React.Component {
if (sortedColumn === key) {
sortIndicator = (
<span>
- <Icon icon={sortDescending ? 'triangle-down' : 'triangle-up'} />
+ <Icon icon={sortDescending ? 'triangle-down' : 'triangle-up'} />
</span>
);
}
diff --git a/pkg/nuclide-ui/Tree.js b/pkg/nuclide-ui/Tree.js
index 337bcd3..65b521a 100644
--- a/pkg/nuclide-ui/Tree.js
+++ b/pkg/nuclide-ui/Tree.js
@@ -34,9 +34,10 @@ export const TreeItem = (props: TreeItemProps) => {
)}
{...remainingProps}
>
- {selected && typeof children === 'string'
- ? // String children must be wrapped to receive correct styles when selected.
- <span>{children}</span>
+ {selected &&
+ typeof children ===
+ 'string' /* String children must be wrapped to receive correct styles when selected.*/
+ ? <span>{children}</span>
: children}
</li>
);
diff --git a/pkg/nuclide-ui/TreeRootComponent.js b/pkg/nuclide-ui/TreeRootComponent.js
index a7a34b9..f20923b 100644
--- a/pkg/nuclide-ui/TreeRootComponent.js
+++ b/pkg/nuclide-ui/TreeRootComponent.js
@@ -257,7 +257,7 @@ export class TreeRootComponent extends React.Component {
definition.shouldDisplay = () => {
if (
this.state.roots.length === 0 &&
- !definition.shouldDisplayIfTreeIsEmpty
+ !definition.shouldDisplayIfTreeIsEmpty
) {
return false;
}
diff --git a/pkg/nuclide-ui/VendorLib/atom-tabs/lib/mru-item-view.js b/pkg/nuclide-ui/VendorLib/atom-tabs/lib/mru-item-view.js
index 6734eaf..6355d5e 100755
--- a/pkg/nuclide-ui/VendorLib/atom-tabs/lib/mru-item-view.js
+++ b/pkg/nuclide-ui/VendorLib/atom-tabs/lib/mru-item-view.js
@@ -75,7 +75,7 @@ export default class MRUItemView {
for (let i = 0; i < projectPaths.length; i++) {
if (
filePath === projectPaths[i] ||
- filePath.startsWith(projectPaths[i] + path.sep)
+ filePath.startsWith(projectPaths[i] + path.sep)
) {
return atom.project.getRepositories()[i];
}
diff --git a/pkg/nuclide-ui/VendorLib/atom-tabs/lib/tab-bar-view.js b/pkg/nuclide-ui/VendorLib/atom-tabs/lib/tab-bar-view.js
index e80b755..4ac303a 100644
--- a/pkg/nuclide-ui/VendorLib/atom-tabs/lib/tab-bar-view.js
+++ b/pkg/nuclide-ui/VendorLib/atom-tabs/lib/tab-bar-view.js
@@ -567,7 +567,7 @@
(typeof item.isModified === 'function'
? item.isModified()
: void 0) &&
- item.getText != null
+ item.getText != null
) {
event.dataTransfer.setData('has-unsaved-changes', 'true');
return event.dataTransfer.setData('modified-text', item.getText());
diff --git a/pkg/nuclide-ui/VendorLib/atom-tabs/lib/tab-view.js b/pkg/nuclide-ui/VendorLib/atom-tabs/lib/tab-view.js
index ca0d796..333fdec 100644
--- a/pkg/nuclide-ui/VendorLib/atom-tabs/lib/tab-view.js
+++ b/pkg/nuclide-ui/VendorLib/atom-tabs/lib/tab-view.js
@@ -453,10 +453,10 @@
return this.itemTitle.classList.add('icon', 'icon-' + this.iconName);
} else if (
this.path != null &&
- (this.iconName = FileIcons.getService().iconClassForPath(
- this.path,
- 'tabs',
- ))
+ (this.iconName = FileIcons.getService().iconClassForPath(
+ this.path,
+ 'tabs',
+ ))
) {
if (!Array.isArray(names = this.iconName)) {
names = names.toString().split(/\s+/g);
diff --git a/pkg/nuclide-unicode-datatip/lib/Unicode.js b/pkg/nuclide-unicode-datatip/lib/Unicode.js
index 330179f..4aa0ca7 100644
--- a/pkg/nuclide-unicode-datatip/lib/Unicode.js
+++ b/pkg/nuclide-unicode-datatip/lib/Unicode.js
@@ -38,8 +38,8 @@ export function decodeSurrogateCodePoints(
highSurrogate = codePoint;
} else if (
codePoint >= LOW_SURROGATE_START &&
- codePoint <= LOW_SURROGATE_END &&
- highSurrogate !== -1
+ codePoint <= LOW_SURROGATE_END &&
+ highSurrogate !== -1
) {
const decoded = 0x10000 +
(highSurrogate - HIGH_SURROGATE_START) * 0x400 +
diff --git a/pkg/nuclide-workspace-views/lib/main.js b/pkg/nuclide-workspace-views/lib/main.js
index 875eb94..136d515 100644
--- a/pkg/nuclide-workspace-views/lib/main.js
+++ b/pkg/nuclide-workspace-views/lib/main.js
@@ -140,8 +140,7 @@ function createPackageStore(rawState: Object): Store {
const rootEpic = (actions, store) => combineEpics(...epics)(
actions,
store,
- )// Log errors and continue.
- .catch((err, stream) => {
+ ).catch((err, stream) => {
getLogger().error(err);
return stream;
});
diff --git a/pkg/nuclide-workspace-views/lib/redux/Epics.js b/pkg/nuclide-workspace-views/lib/redux/Epics.js
index 9bcd811..34415a8 100644
--- a/pkg/nuclide-workspace-views/lib/redux/Epics.js
+++ b/pkg/nuclide-workspace-views/lib/redux/Epics.js
@@ -87,8 +87,7 @@ export function trackActionsEpic(
actions: ActionsObservable<Action>,
store: Store,
): Observable<Action> {
- return actions.ofType(Actions.ITEM_CREATED)// Map to a tracking event.
- .map(action => {
+ return actions.ofType(Actions.ITEM_CREATED).map(action => {
invariant(action.type === Actions.ITEM_CREATED);
const {itemType} = action.payload;
// TODO: Appeal to `item` for custom tracking event here. Let's wait until we need that
diff --git a/pkg/sample-nux-example/lib/main.js b/pkg/sample-nux-example/lib/main.js
index 4b0078a..e0495e1 100644
--- a/pkg/sample-nux-example/lib/main.js
+++ b/pkg/sample-nux-example/lib/main.js
@@ -88,7 +88,7 @@ function generateTestNuxTour(
* NUX interaction. The NuxView will not progress to the next one in the
* NuxTour until the predicate evaluates to true.
*/
- // completionPredicate: () => true,,
+ // completionPredicate: () => true,,,,
});
const nuxList = Array(numViews)
.fill()
@@ -113,7 +113,7 @@ function generateTestNuxTour(
* session. Only to be used for development purposes - the flow typing ensures
* that this cannot be set to true when shipping the NUX.
*/
- // developmentMode: true,,
+ // developmentMode: true,,,,
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment