Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
872d83a3
Commit
872d83a3
authored
Oct 25, 2017
by
Alexandre Ardhuin
Committed by
GitHub
Oct 25, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
enable lint prefer_conditional_assignment (#12694)
parent
d69fcea1
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
10 deletions
+6
-10
analysis_options.yaml
analysis_options.yaml
+1
-1
analysis_options_repo.yaml
analysis_options_repo.yaml
+1
-1
navigator.dart
packages/flutter/lib/src/widgets/navigator.dart
+1
-2
terminal.dart
packages/flutter_tools/lib/src/base/terminal.dart
+1
-2
vmservice.dart
packages/flutter_tools/lib/src/vmservice.dart
+2
-4
No files found.
analysis_options.yaml
View file @
872d83a3
...
...
@@ -111,7 +111,7 @@ linter:
-
prefer_adjacent_string_concatenation
# - prefer_asserts_in_initializer_lists # not yet tested
-
prefer_collection_literals
# - prefer_conditional_assignment # not yet tested
-
prefer_conditional_assignment
-
prefer_const_constructors
# - prefer_const_constructors_in_immutables # not yet tested
# - prefer_constructors_over_static_methods # not yet tested
...
...
analysis_options_repo.yaml
View file @
872d83a3
...
...
@@ -105,7 +105,7 @@ linter:
-
prefer_adjacent_string_concatenation
# - prefer_asserts_in_initializer_lists # not yet tested
-
prefer_collection_literals
# - prefer_conditional_assignment # not yet tested
-
prefer_conditional_assignment
-
prefer_const_constructors
# - prefer_const_constructors_in_immutables # not yet tested
# - prefer_constructors_over_static_methods # not yet tested
...
...
packages/flutter/lib/src/widgets/navigator.dart
View file @
872d83a3
...
...
@@ -798,8 +798,7 @@ class NavigatorState extends State<Navigator> with TickerProviderStateMixin {
Route
<
dynamic
>
route
;
if
(
initialRouteName
!=
Navigator
.
defaultRouteName
)
route
=
_routeNamed
(
initialRouteName
,
allowNull:
true
);
if
(
route
==
null
)
route
=
_routeNamed
(
Navigator
.
defaultRouteName
);
route
??=
_routeNamed
(
Navigator
.
defaultRouteName
);
push
(
route
);
}
for
(
Route
<
dynamic
>
route
in
_history
)
...
...
packages/flutter_tools/lib/src/base/terminal.dart
View file @
872d83a3
...
...
@@ -85,8 +85,7 @@ class AnsiTerminal {
///
/// Useful when the console is in [singleCharMode].
Stream
<
String
>
get
onCharInput
{
if
(
_broadcastStdInString
==
null
)
_broadcastStdInString
=
io
.
stdin
.
transform
(
ASCII
.
decoder
).
asBroadcastStream
();
_broadcastStdInString
??=
io
.
stdin
.
transform
(
ASCII
.
decoder
).
asBroadcastStream
();
return
_broadcastStdInString
;
}
...
...
packages/flutter_tools/lib/src/vmservice.dart
View file @
872d83a3
...
...
@@ -995,11 +995,9 @@ class Isolate extends ServiceObjectOwner {
}
void
_updateHeaps
(
Map
<
String
,
dynamic
>
map
,
bool
mapIsRef
)
{
if
(
_newSpace
==
null
)
_newSpace
=
new
HeapSpace
.
_empty
(
this
);
_newSpace
??=
new
HeapSpace
.
_empty
(
this
);
_newSpace
.
_update
(
map
[
'new'
],
mapIsRef
);
if
(
_oldSpace
==
null
)
_oldSpace
=
new
HeapSpace
.
_empty
(
this
);
_oldSpace
??=
new
HeapSpace
.
_empty
(
this
);
_oldSpace
.
_update
(
map
[
'old'
],
mapIsRef
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment