Skip to content

Commit

Permalink
ignore false postive avoid_returning_this lint (dart-lang#3408)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakemac53 authored and simolus3 committed Dec 11, 2022
1 parent 008dbf8 commit f4f5a97
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions build/CHANGELOG.md
@@ -1,3 +1,5 @@
## 2.3.2-dev

## 2.3.1

- Allow the latest `package:analyzer`.
Expand Down
1 change: 1 addition & 0 deletions build/lib/src/builder/builder.dart
Expand Up @@ -54,6 +54,7 @@ class BuilderOptions {
///
/// The `isRoot` value will also be overridden to value from [other].
BuilderOptions overrideWith(BuilderOptions? other) {
// ignore: avoid_returning_this
if (other == null) return this;
return BuilderOptions(
{}
Expand Down
2 changes: 1 addition & 1 deletion build/pubspec.yaml
@@ -1,5 +1,5 @@
name: build
version: 2.3.1
version: 2.3.2-dev
description: A package for authoring build_runner compatible code generators.
repository: https://github.com/dart-lang/build/tree/master/build

Expand Down

0 comments on commit f4f5a97

Please sign in to comment.