Skip to content

Commit

Permalink
fix(docs): typo in docstring, add todo to sanitizeVariables
Browse files Browse the repository at this point in the history
  • Loading branch information
micimize committed Sep 12, 2020
1 parent db1cdf7 commit 9c84cb1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/graphql/lib/src/utilities/helpers.dart
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ DocumentNode gql(String document) => transform(
],
);

/// Convets [MultipartFile]s to a string representation containing hashCode. Default argument to [variableSanitizer]
/// Converts [MultipartFile]s to a string representation containing hashCode. Default argument to [variableSanitizer]
Object sanitizeFilesForCache(dynamic object) {
if (object is MultipartFile) {
return 'MultipartFile(filename=${object.filename} hashCode=${object.hashCode})';
Expand All @@ -83,6 +83,7 @@ typedef SanitizeVariables = Map<String, dynamic> Function(
SanitizeVariables variableSanitizer(
Object Function(Object) sanitizeVariables,
) =>
// TODO use more efficient traversal method
sanitizeVariables == null
? (v) => v
: (variables) => jsonDecode(
Expand Down

0 comments on commit 9c84cb1

Please sign in to comment.