Skip to content

Commit ac64f8f

Browse files
committed
Clean up
1 parent c5874e8 commit ac64f8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

devserver/main.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ struct Arguments {
3636
std::string package_name;
3737
};
3838

39-
std::string GetFileContents(const std::string &path) {
39+
std::string GetFileContents(const Path &path) {
4040
std::ifstream ifs(path);
4141
std::string content((std::istreambuf_iterator<char>(ifs)),
4242
(std::istreambuf_iterator<char>()));
@@ -166,7 +166,7 @@ int main(int argc, char **argv) {
166166
static_file_contents =
167167
AddDevserverLoaderToStaticFileContents(static_file_contents);
168168

169-
const std::map<std::string, std::string> path_to_contents = {
169+
const std::map<Path, FileContents> path_to_contents = {
170170
{"/", static_file_contents}};
171171
json manifest = ComputeManifest(path_to_contents);
172172
DEBUG_LOG("manifest: " << manifest.dump() << "\n\n");

0 commit comments

Comments
 (0)