Skip to content

Commit

Permalink
update lint (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
HomelessDinosaur authored Jul 12, 2024
1 parent 4bb95a7 commit 414a388
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 14 deletions.
6 changes: 2 additions & 4 deletions lib/src/context/blobevent.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ enum BlobEventType { write, delete }
/// The context of a Blob event request/response.
class BlobEventContext
extends TriggerContext<BlobEventRequest, BlobEventResponse> {
BlobEventContext(String id, BlobEventRequest req, BlobEventResponse resp)
: super(id, req, resp);
BlobEventContext(super.id, super.req, super.resp);

/// Create a Blob Event context from a server message.
BlobEventContext.fromRequest($bp.ServerMessage msg)
Expand All @@ -22,8 +21,7 @@ class BlobEventContext
/// The context of a Blob event request/response.
class FileEventContext
extends TriggerContext<FileEventRequest, BlobEventResponse> {
FileEventContext(String id, FileEventRequest req, BlobEventResponse resp)
: super(id, req, resp);
FileEventContext(super.id, super.req, super.resp);

/// Create a Blob Event context from a server message.
FileEventContext.fromRequest($bp.ServerMessage msg, Bucket bucket)
Expand Down
3 changes: 1 addition & 2 deletions lib/src/context/http.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ part of './common.dart';

/// The context of a HTTP request/response triggered by a request to an API.
class HttpContext extends TriggerContext<HttpRequest, HttpResponse> {
HttpContext(String id, HttpRequest req, HttpResponse resp)
: super(id, req, resp);
HttpContext(super.id, super.req, super.resp);

/// Create a HTTP context from a server message.
HttpContext.fromRequest($ap.ServerMessage msg)
Expand Down
3 changes: 1 addition & 2 deletions lib/src/context/interval.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ part of './common.dart';
/// The context for a scheduled interval request/response.
class IntervalContext
extends TriggerContext<IntervalRequest, IntervalResponse> {
IntervalContext(String id, IntervalRequest req, IntervalResponse resp)
: super(id, req, resp);
IntervalContext(super.id, super.req, super.resp);

/// Create an Interval context from a server message.
IntervalContext.fromRequest($sp.ServerMessage msg)
Expand Down
3 changes: 1 addition & 2 deletions lib/src/context/message.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ part of './common.dart';

/// The context for a topic message for a subscription.
class MessageContext extends TriggerContext<MessageRequest, MessageResponse> {
MessageContext(String id, MessageRequest req, MessageResponse resp)
: super(id, req, resp);
MessageContext(super.id, super.req, super.resp);

/// Create an Event context from a server message.
factory MessageContext.fromRequest($ep.ServerMessage msg) {
Expand Down
3 changes: 1 addition & 2 deletions lib/src/context/websocket.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ enum WebsocketEvent { connect, disconnect, message }
/// Base context for a websocket based request/response.
class WebsocketContext
extends TriggerContext<WebsocketRequest, WebsocketResponse> {
WebsocketContext(String id, WebsocketRequest req, WebsocketResponse resp)
: super(id, req, resp);
WebsocketContext(super.id, super.req, super.resp);

factory WebsocketContext.fromRequest($wp.ServerMessage msg) {
var eventType = WebsocketEvent.connect;
Expand Down
2 changes: 1 addition & 1 deletion lib/src/resources/common.dart
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ abstract class Resource {

/// A resource that requires permissions to access it.
abstract class SecureResource<T extends Enum> extends Resource {
SecureResource(String name, $p.ResourcesClient? client) : super(name, client);
SecureResource(super.name, super.client);

/// Convert a list of permissions to gRPC actions.
List<$p.Action> permissionsToActions(List<T> permissions);
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ dependencies:
# path: ^1.8.0

dev_dependencies:
lints: ^2.1.0
lints: ^4.0.0
mocktail: ^1.0.3
test: ^1.24.0

0 comments on commit 414a388

Please sign in to comment.