Skip to content

Commit

Permalink
style: fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
blaugold committed Mar 3, 2021
1 parent 1f904cb commit 8a892e6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ void main(List<String> args) async {
settings: ClientSettings(credentials: appCredentials),
);

// Fetch 5 random photos by calling `goAndGet` to execute the [Request]
// Fetch 5 random photos by calling `goAndGet` to execute the [Request]
// returned from `random` and throw an exception if the [Response] is not ok.
final photos = await client.photos.random(count: 5).goAndGet();

Expand Down
4 changes: 1 addition & 3 deletions lib/src/photos.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ import 'utils.dart';
/// See: [Unsplash docs](https://unsplash.com/documentation#photos)
class Photos {
/// Creates a new instance which belongs to [client].
Photos(this.client)
:
baseUrl = client.baseUrl.resolve('photos/');
Photos(this.client) : baseUrl = client.baseUrl.resolve('photos/');

/// The parent [UnsplashClient].
final UnsplashClient client;
Expand Down
4 changes: 1 addition & 3 deletions lib/src/search.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ import 'utils.dart';
/// See: [Unsplash docs](https://unsplash.com/documentation#search)
class Search {
/// Creates a new instance which belongs to [client].
Search(this.client)
:
baseUrl = client.baseUrl.resolve('search/');
Search(this.client) : baseUrl = client.baseUrl.resolve('search/');

/// The parent [UnsplashClient].
final UnsplashClient client;
Expand Down

0 comments on commit 8a892e6

Please # to comment.