Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
mockturtl committed Jul 19, 2015
1 parent e0987f7 commit 51e2d69
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/src/parser.dart
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ class Parser {

/// Substitutes $bash_vars in [val] with values from [env].
@Deprecated('Exposed for testing') // FIXME
String interpolate(String val, Map<String, String> env) => val
.replaceAllMapped(_bashVar, (m) {
var k = m.group(2);
if (!_has(env, k)) return _tryPlatformEnv(k);
return env[k];
});
String interpolate(String val, Map<String, String> env) =>
val.replaceAllMapped(_bashVar, (m) {
var k = m.group(2);
if (!_has(env, k)) return _tryPlatformEnv(k);
return env[k];
});

/// If [val] is wrapped in single or double quotes, returns the quote character.
/// Otherwise, returns the empty string.
Expand Down

0 comments on commit 51e2d69

Please sign in to comment.