about summary refs log tree commit diff
diff options
context:
space:
mode:
authorisomer <isomer@tvl.fyi>2020-07-12T22·47+0000
committerisomer <isomer@tvl.fyi>2020-07-13T20·18+0000
commitafd1367337300f0411d1e6eee6bb6b53bbaf113c (patch)
tree644a49411a29dec88e445bdfd2a03eece0ae7804
parentf3165f48aa960a0167c403ec99320affd8425004 (diff)
fix(nix-channel): Actually strip whitespace. r/1279
This has been providing a warning and it's been bothering me.

Change-Id: I0548059950ec4250d7cf0938f9deae09eafe593c
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1141
Reviewed-by: tazjin <mail@tazj.in>
Reviewed-by: isomer <isomer@tvl.fyi>
Tested-by: BuildkiteCI
-rw-r--r--third_party/nix/src/nix-channel/nix-channel.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/third_party/nix/src/nix-channel/nix-channel.cc b/third_party/nix/src/nix-channel/nix-channel.cc
index 0fb53780d3..87cc0a1fea 100644
--- a/third_party/nix/src/nix-channel/nix-channel.cc
+++ b/third_party/nix/src/nix-channel/nix-channel.cc
@@ -140,7 +140,7 @@ static void update(const StringSet& channelNames) {
                                CachedDownloadRequest(url + "/nixexprs.tar.bz2"))
                 .path;
       }
-      absl::StripTrailingAsciiWhitespace(filename);
+      filename = absl::StripTrailingAsciiWhitespace(filename);
     }
 
     // Regardless of where it came from, add the expression representing this